summaryrefslogtreecommitdiffstats
path: root/bashrc/common
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-06-23 05:14:23 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-06-23 05:14:23 +0200
commit09f5ee1da84eb3d48ca7723faa42d3c29d94da08 (patch)
tree8c8f077a51c2a7bb69ce1669a3f082200224a350 /bashrc/common
parentff9bc8da82f41a885fb5ca3fc63707d9292c534c (diff)
downloaddotfiles-09f5ee1da84eb3d48ca7723faa42d3c29d94da08.tar.gz
dotfiles-09f5ee1da84eb3d48ca7723faa42d3c29d94da08.tar.xz
dotfiles-09f5ee1da84eb3d48ca7723faa42d3c29d94da08.zip
fix git magic in prompt to not activate in .git dir or bare repositories
Diffstat (limited to 'bashrc/common')
-rw-r--r--bashrc/common/prompt.sh2
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"