From 3dd645970e2cdb8bb17d628b13626afadf46741f Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Wed, 18 Jan 2017 18:29:19 +0200 Subject: [PATCH] Evaluate $PROMPT at render time (#274) This allows $PURE_PROMPT_SYMBOL to be modified at any point. --- pure.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pure.zsh b/pure.zsh index f1fd5cd6e4b14..54719b7aa2cc1 100644 --- a/pure.zsh +++ b/pure.zsh @@ -368,7 +368,7 @@ prompt_pure_setup() { [[ $UID -eq 0 ]] && prompt_pure_username=' %F{white}%n%f%F{242}@%m%f' # prompt turns red if the previous command didn't exit with 0 - PROMPT="%(?.%F{magenta}.%F{red})${PURE_PROMPT_SYMBOL:-❯}%f " + PROMPT='%(?.%F{magenta}.%F{red})${PURE_PROMPT_SYMBOL:-❯}%f ' } prompt_pure_setup "$@"