Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
27baae9
)
adds git info to prompt below the root of a repository
author
Jeff Kolesky
<jeff@kolesky.com>
Sat, 5 Mar 2011 23:08:03 +0000
(18:08 -0500)
committer
Jeff Kolesky
<jeff@kolesky.com>
Sat, 5 Mar 2011 23:08:03 +0000
(18:08 -0500)
themes/base.theme.bash
patch
|
blob
|
history
diff --git
a/themes/base.theme.bash
b/themes/base.theme.bash
index
56629b9
..
7087662
100644
(file)
--- 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'