diff options
author | Dennis Eriksen <d@ennis.no> | 2022-11-23 12:40:57 +0100 |
---|---|---|
committer | Dennis Eriksen <d@ennis.no> | 2022-11-23 12:40:57 +0100 |
commit | a47e519369f6e94f6fa64af63a10ae83744a6e92 (patch) | |
tree | de16753bd6b9066baa2e223ed42733e0265f4cd8 /prompt_adam3_setup | |
parent | add support for virtualenv (diff) | |
download | adam3-a47e519369f6e94f6fa64af63a10ae83744a6e92.tar.gz |
We need to initialize colors before we can use $reset_color
Diffstat (limited to 'prompt_adam3_setup')
-rw-r--r-- | prompt_adam3_setup | 3 |
1 files changed, 2 insertions, 1 deletions
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%}] )" |