Revert "Fix double variable interpolation in branch name"

This reverts commit 6cbd49ad5c because it
broke users prompts if they didn't have `prompt_subst` set.
This commit is contained in:
Mathias Fredriksson
2016-08-25 18:49:07 +03:00
parent 6cbd49ad5c
commit 753ef290f8

View File

@@ -132,9 +132,8 @@ prompt_pure_preprompt_render() {
# construct preprompt, beginning with path # construct preprompt, beginning with path
local preprompt="%F{blue}%~%f" local preprompt="%F{blue}%~%f"
# git info, delay evaluation of branch name until the prompt expansion to # git info
# prevent e.g. double variable interpolation preprompt+="%F{$git_color}${vcs_info_msg_0_}${prompt_pure_git_dirty}%f"
preprompt+="%F{$git_color}"'$vcs_info_msg_0_'"${prompt_pure_git_dirty}%f"
# git pull/push arrows # git pull/push arrows
preprompt+="%F{cyan}${prompt_pure_git_arrows}%f" preprompt+="%F{cyan}${prompt_pure_git_arrows}%f"
# username and machine if applicable # username and machine if applicable