summaryrefslogtreecommitdiffstats
path: root/gitprompt
diff options
context:
space:
mode:
Diffstat (limited to 'gitprompt')
-rwxr-xr-xgitprompt6
1 files changed, 3 insertions, 3 deletions
diff --git a/gitprompt b/gitprompt
index f96c8d4..4636744 100755
--- a/gitprompt
+++ b/gitprompt
@@ -7,9 +7,9 @@ autoload -U colors && colors
estatus=0
#isgit="$(git rev-parse --is-inside-work-tree 2>/dev/null)"
-isgit="$(git rev-parse --is-inside-work-tree 2>/dev/null)"
-#if test (../)#.git(N) 2>/dev/null;then
-if [[ $isgit == "true" ]];then
+#isgit="$(git rev-parse --is-inside-work-tree 2>/dev/null)"
+if test (../)#.git 2>/dev/null;then
+#if [[ $isgit == "true" ]];then
local gprompt="("
gprompt+="$(git branch | grep '*'| cut -d ' ' -f 2 | tr -d '\n')"
#timeout 3 git status -s