From 48a4e3f8ec3471cb37f27d24bb32e6bf643f4726 Mon Sep 17 00:00:00 2001 From: Dmytro Meleshko Date: Sun, 13 Jan 2019 15:49:08 +0200 Subject: [PATCH] patch prompt a bit --- lib/theme.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/theme.zsh b/lib/theme.zsh index 63996b6..aaf01c9 100644 --- a/lib/theme.zsh +++ b/lib/theme.zsh @@ -8,3 +8,9 @@ configure_dircolors() { } configure_dircolors + +# This ugly hack is required only for the agnoster theme which I use. I'm +# probably going to switch to another theme because it is so damn slow +autoload -Uz add-zsh-hook +_patch-prompt() { PROMPT="$PROMPT"$'\n%{%F{247}%}\u03bb>%{%b%f%} '; } +add-zsh-hook precmd _patch-prompt