From 6dd943a23e8b0d1ed41ffa8d784446ba27f52c1f Mon Sep 17 00:00:00 2001 From: Jeff Kolesky Date: Sat, 5 Mar 2011 18:08:03 -0500 Subject: [PATCH] adds git info to prompt below the root of a repository --- themes/base.theme.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/base.theme.bash b/themes/base.theme.bash index 56629b9..7087662 100644 --- a/themes/base.theme.bash +++ b/themes/base.theme.bash @@ -22,6 +22,7 @@ RVM_THEME_PROMPT_SUFFIX='|' 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 [[ -d .svn ]]; then SCM=$SVN else SCM='NONE' -- 2.17.1