summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xprompt3
1 files changed, 2 insertions, 1 deletions
diff --git a/prompt b/prompt
index bf3883d..344feec 100755
--- a/prompt
+++ b/prompt
@@ -234,7 +234,8 @@ PROMPT_COMMAND='
# LOCAL
# GIT
- if [[ -n $DIT_DIR && -d $GIT_DIR || -d .git || -d ../.git || -d ../../.git ]]; then
+ git_dir=`git-rev-parse --git-dir 2> /dev/null`
+ if [[ $git_dir ]]; then
### status
# clean(blue) nothing to commit (working directory clean)