Change the test expression of Git
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user