From a47e519369f6e94f6fa64af63a10ae83744a6e92 Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Wed, 23 Nov 2022 12:40:57 +0100 Subject: We need to initialize colors before we can use $reset_color --- prompt_adam3_setup | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'prompt_adam3_setup') diff --git a/prompt_adam3_setup b/prompt_adam3_setup index adc444d..8ae8477 100644 --- a/prompt_adam3_setup +++ b/prompt_adam3_setup @@ -14,6 +14,7 @@ prompt_adam3_setup () { setopt localoptions nowarncreateglobal autoload -Uz vcs_info + autoload -U colors && colors # colors prompt_adam3_color1=${1:-'multi'} @@ -83,7 +84,7 @@ prompt_adam3_precmd () { # same as above, but with $ instead of % as promptchar for unprivileged users #if [[ $EUID == 0 ]]; then promptchar="%F{red}%B%#%b%f"; else promptchar="%F{white}%B%(!.#.$)%b%f"; fi - PS1+="${vcs_info_msg_0_}%{${reset_color}%}" + PS1+="${vcs_info_msg_0_}%{$reset_color%}" # Display exit-code PS1+="%(?..[%{$fg[red]%}%?%{$reset_color%}] )" -- cgit v1.2.3