From 7bef81aaa6b6f1ef047d21dc2e33a119418cd8c0 Mon Sep 17 00:00:00 2001 From: bmallred Date: Mon, 23 Dec 2013 08:12:48 -0500 Subject: [PATCH] Fixed variable name in BZR and HG lib files. --- lib/bzr.zsh | 2 +- lib/hg.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bzr.zsh b/lib/bzr.zsh index b9706b42..f61c4434 100644 --- a/lib/bzr.zsh +++ b/lib/bzr.zsh @@ -3,7 +3,7 @@ function bzr_prompt_info() { BZR_BRANCH=$(command bzr nick 2> /dev/null | grep -v "ERROR" | cut -d ":" -f2 | awk -F / '{print $1}') - if [[ -n "$BZR_CB" ]]; then + if [[ -n "$BZR_BRANCH" ]]; then echo "$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_BRANCH$(parse_bzr_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX" fi } diff --git a/lib/hg.zsh b/lib/hg.zsh index d6df4322..d88b2d85 100644 --- a/lib/hg.zsh +++ b/lib/hg.zsh @@ -2,7 +2,7 @@ function hg_prompt_info() { HG_BRANCH=$(command hg branch 2> /dev/null | grep -v ^abort) - if [[ -n "$HG_CB" ]]; then + if [[ -n "$HG_BRANCH" ]]; then echo "$ZSH_THEME_HG_PROMPT_PREFIX$HG_BRANCH$(parse_hg_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX" fi }