Fixed variable name in BZR and HG lib files.

This commit is contained in:
bmallred 2013-12-23 08:12:48 -05:00
parent bec0715e40
commit 7bef81aaa6
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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
}