diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-06-23 05:14:23 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-06-23 05:14:23 +0200 |
commit | 09f5ee1da84eb3d48ca7723faa42d3c29d94da08 (patch) | |
tree | 8c8f077a51c2a7bb69ce1669a3f082200224a350 | |
parent | ff9bc8da82f41a885fb5ca3fc63707d9292c534c (diff) | |
download | dotfiles-09f5ee1da84eb3d48ca7723faa42d3c29d94da08.tar.gz dotfiles-09f5ee1da84eb3d48ca7723faa42d3c29d94da08.tar.xz dotfiles-09f5ee1da84eb3d48ca7723faa42d3c29d94da08.zip |
fix git magic in prompt to not activate in .git dir or bare repositories
-rw-r--r-- | bashrc/common/prompt.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bashrc/common/prompt.sh b/bashrc/common/prompt.sh index f0eb9c8..a2b98a4 100644 --- a/bashrc/common/prompt.sh +++ b/bashrc/common/prompt.sh @@ -47,7 +47,7 @@ ps_scm_f() { s="$(color yellow)r$r$(color red)$(svn status | grep -q -v '^?' && echo -n "*" )" else local d=$(git rev-parse --git-dir 2>/dev/null ) b= r= a= - if [[ -n "${d}" && ! -f "${d}/../.promptignore" ]] ; then + if [[ -n "${d}" && "${d}" != "." && ! -f "${d}/../.promptignore" ]] ; then if [[ -d "${d}/../.dotest" ]] ; then if [[ -f "${d}/../.dotest/rebase" ]] ; then r="rebase" |