Skip to content

Commit

Permalink
fixed: for case when there is no VCS modules
Browse files Browse the repository at this point in the history
  • Loading branch information
lvv committed Mar 4, 2010
1 parent b5475e6 commit 7a676ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-prompt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@
################# make PARSE_VCS_STATUS
unset PARSE_VCS_STATUS
[[ $git_module = "on" ]] && type git >&/dev/null && PARSE_VCS_STATUS+="parse_git_status"
[[ $svn_module = "on" ]] && type svn >&/dev/null && PARSE_VCS_STATUS+="||parse_svn_status"
[[ $hg_module = "on" ]] && type hg >&/dev/null && PARSE_VCS_STATUS+="||parse_hg_status"
PARSE_VCS_STATUS+="||return"
[[ $svn_module = "on" ]] && type svn >&/dev/null && PARSE_VCS_STATUS+="${PARSE_VCS_STATUS+||}parse_svn_status"
[[ $hg_module = "on" ]] && type hg >&/dev/null && PARSE_VCS_STATUS+="${PARSE_VCS_STATUS+||}parse_hg_status"
PARSE_VCS_STATUS+="${PARSE_VCS_STATUS+||}return"
################# terminfo colors-16
#
# black? 0 8
Expand Down

0 comments on commit 7a676ac

Please sign in to comment.