diff --git a/gitprompt.sh b/gitprompt.sh index ac212bd..faefdc1 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -303,6 +303,7 @@ function setLastCommandState() { function we_are_on_repo() { if [[ -e "$(git rev-parse --git-dir 2> /dev/null)" ]]; then echo 1 + return fi echo 0 }