Updated scm function to include hg root to check for Mercurial

Removed scm function from hawaii50.theme.bash
This commit is contained in:
Ryan
2011-06-08 10:20:04 -10:00
parent dcb0ddec2f
commit c7fcf20648
2 changed files with 1 additions and 10 deletions

View File

@@ -24,6 +24,7 @@ function scm {
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 [[ -n "$(hg root 2> /dev/null)" ]]; then SCM=$HG
elif [[ -d .svn ]]; then SCM=$SVN
else SCM='NONE'
fi