summaryrefslogtreecommitdiff
path: root/prompt
diff options
context:
space:
mode:
Diffstat (limited to 'prompt')
-rwxr-xr-xprompt2
1 files changed, 1 insertions, 1 deletions
diff --git a/prompt b/prompt
index bba3e2b..bf3883d 100755
--- a/prompt
+++ b/prompt
@@ -234,7 +234,7 @@ PROMPT_COMMAND='
# LOCAL
# GIT
- if [[ -d .git || -d ../.git || -d ../../.git ]]; then
+ if [[ -n $DIT_DIR && -d $GIT_DIR || -d .git || -d ../.git || -d ../../.git ]]; then
### status
# clean(blue) nothing to commit (working directory clean)