commit | 6dd943a23e8b0d1ed41ffa8d784446ba27f52c1f | [log] [tgz] |
---|---|---|
author | Jeff Kolesky <jeff@kolesky.com> | 周六 3月 05 18:08:03 2011 -0500 |
committer | Jeff Kolesky <jeff@kolesky.com> | 周六 3月 05 18:08:03 2011 -0500 |
tree | 40cff94da6cb6b33281416fc573701af052fa121 | |
parent | 27baae9cb3917d9a8e28ab831bd89e3f45ef84e3 [diff] |
adds git info to prompt below the root of a repository
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 @@ 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'