Merge remote-tracking branch 'xiaogaozi/master'

pull/126/head
Travis Swicegood 2012-05-04 16:32:44 -05:00
commit fe815f170d
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ aliases/custom.aliases.bash
lib/custom.bash
plugins/custom.plugins.bash
*.swp
.*.un~

View File

@ -31,7 +31,7 @@ RBFU_THEME_PROMPT_PREFIX=' |'
RBFU_THEME_PROMPT_SUFFIX='|'
function scm {
if [[ -d .git ]]; then SCM=$SCM_GIT
if [[ -f .git/HEAD ]]; then SCM=$SCM_GIT
elif [[ -n "$(git symbolic-ref HEAD 2> /dev/null)" ]]; then SCM=$SCM_GIT
elif [[ -d .hg ]]; then SCM=$SCM_HG
elif [[ -n "$(hg root 2> /dev/null)" ]]; then SCM=$SCM_HG