Skip to content

Commit

Permalink
Evaluate $PROMPT at render time (ohmyzsh#274)
Browse files Browse the repository at this point in the history
This allows $PURE_PROMPT_SYMBOL to be modified at any point.
  • Loading branch information
mafredri authored and sindresorhus committed Jan 18, 2017
1 parent 6ec0029 commit 3dd6459
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pure.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 3dd6459

Please sign in to comment.