adds git info to prompt below the root of a repository

pull/40/head
Jeff Kolesky 2011-03-05 18:08:03 -05:00
parent 27baae9cb3
commit 6dd943a23e
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ RVM_THEME_PROMPT_SUFFIX='|'
function scm { function scm {
if [[ -d .git ]]; then SCM=$GIT if [[ -d .git ]]; then SCM=$GIT
elif [[ -n "$(git symbolic-ref HEAD 2> /dev/null)" ]]; then SCM=$GIT
elif [[ -d .hg ]]; then SCM=$HG elif [[ -d .hg ]]; then SCM=$HG
elif [[ -d .svn ]]; then SCM=$SVN elif [[ -d .svn ]]; then SCM=$SVN
else SCM='NONE' else SCM='NONE'