aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
Diffstat (limited to 'prompt_adam3_setup')
-rw-r--r--prompt_adam3_setup3
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%}] )"