Update agnoster.zsh-theme

This commit is contained in:
wweir 2014-07-19 10:33:54 +08:00
commit 30abd6340e

View file

@ -26,7 +26,7 @@
# A few utility functions to make it easy and re-usable to draw segmented prompts # A few utility functions to make it easy and re-usable to draw segmented prompts
CURRENT_BG='NONE' CURRENT_BG='NONE'
SEGMENT_SEPARATOR='' SEGMENT_SEPARATOR=''
# Begin a segment # Begin a segment
# Takes two arguments, background and foreground. Both can be omitted, # Takes two arguments, background and foreground. Both can be omitted,
@ -100,7 +100,7 @@ prompt_git() {
zstyle ':vcs_info:*' formats ' %u%c' zstyle ':vcs_info:*' formats ' %u%c'
zstyle ':vcs_info:*' actionformats ' %u%c' zstyle ':vcs_info:*' actionformats ' %u%c'
vcs_info vcs_info
echo -n "${ref/refs\/heads\//}${vcs_info_msg_0_%% }${mode}" echo -n "${ref/refs\/heads\//}${vcs_info_msg_0_%% }${mode}"
fi fi
} }