Skip to content
Browse files

Changed version check -- vcs_info isn't in ubuntu's 4.3.6

  • Loading branch information...
1 parent 2e36007 commit acb664f859e5d751d2ee97ad10b319ba20e11baf @mattfoster mattfoster committed Feb 2, 2009
Showing with 2 additions and 2 deletions.
  1. +1 −1 10_hooks
  2. +1 −1 func/prompt_minimal_vcs_setup
View
2 10_hooks
@@ -23,7 +23,7 @@ function title() {
# precmd is called just before the prompt is printed
function precmd() {
# This may not be the best way of doing this.
- if [[ $ZSH_VERSION < 4.3.6 ]]
+ if [[ $ZSH_VERSION < 4.3.7 ]]
then
vcs_info_msg_0_=$(git-prompt)
elif [[ $git_enable == 1 ]]
View
2 func/prompt_minimal_vcs_setup
@@ -20,7 +20,7 @@ function prompt_minimal_vcs_setup {
n_tru=${3:-'blue'}
n_fal=${4:-'red'}
# I've no idea why the %F style colours don't work whhen SHLVL == 1
- if [[ $SHLVL == 1 || $ZSH_VERSION < 4.3.6 ]]; then
+ if [[ $SHLVL == 1 || $ZSH_VERSION < 4.3.7 ]]; then
PS1='%{$fg_bold[$d_col]%}%1~ %{$fg_bold[$b_col]%}${vcs_info_msg_0_}%(?.%{$fg_bold[$n_tru]%}.%{$fg[$n_fal]%})%# %{$reset_color%}'
PS2='%_ %{$fg_bold[$d_col]%}-> %{$reset_color%}'
else

0 comments on commit acb664f

Please sign in to comment.
Something went wrong with that request. Please try again.