From 753ef290f86b8848595dfd60606c6deb85e25cc2 Mon Sep 17 00:00:00 2001 From: Mathias Fredriksson Date: Thu, 25 Aug 2016 18:49:07 +0300 Subject: [PATCH] Revert "Fix double variable interpolation in branch name" This reverts commit 6cbd49ad5c4cfa1d2e1dc5daf4a1e45c8596097a because it broke users prompts if they didn't have `prompt_subst` set. --- pure.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pure.zsh b/pure.zsh index 2c78ab3..b0ecfbf 100644 --- a/pure.zsh +++ b/pure.zsh @@ -132,9 +132,8 @@ prompt_pure_preprompt_render() { # construct preprompt, beginning with path local preprompt="%F{blue}%~%f" - # git info, delay evaluation of branch name until the prompt expansion to - # prevent e.g. double variable interpolation - preprompt+="%F{$git_color}"'$vcs_info_msg_0_'"${prompt_pure_git_dirty}%f" + # git info + preprompt+="%F{$git_color}${vcs_info_msg_0_}${prompt_pure_git_dirty}%f" # git pull/push arrows preprompt+="%F{cyan}${prompt_pure_git_arrows}%f" # username and machine if applicable