Permalink
Browse files

Change the test expression of Git

  • Loading branch information...
1 parent 773370b commit cd7eaaa066d74588a9508c335240ed3e0248fab3 @xiaogaozi xiaogaozi committed May 4, 2012
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 themes/base.theme.bash
View
@@ -7,3 +7,4 @@ aliases/custom.aliases.bash
lib/custom.bash
plugins/custom.plugins.bash
*.swp
+.*.un~
View
@@ -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

0 comments on commit cd7eaaa

Please sign in to comment.