aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/prompt_adam3_setup
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2022-11-23 12:40:57 +0100
committerDennis Eriksen <d@ennis.no>2022-11-23 12:40:57 +0100
commita47e519369f6e94f6fa64af63a10ae83744a6e92 (patch)
treede16753bd6b9066baa2e223ed42733e0265f4cd8 /prompt_adam3_setup
parentadd support for virtualenv (diff)
downloadadam3-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_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%}] )"