return right away so a success looks like "1" instead of "1 0"

master
hotpocket 8 years ago
parent e4954a791c
commit de16dd6b97
  1. 1
      gitprompt.sh

@ -303,6 +303,7 @@ function setLastCommandState() {
function we_are_on_repo() { function we_are_on_repo() {
if [[ -e "$(git rev-parse --git-dir 2> /dev/null)" ]]; then if [[ -e "$(git rev-parse --git-dir 2> /dev/null)" ]]; then
echo 1 echo 1
return
fi fi
echo 0 echo 0
} }

Loading…
Cancel
Save