Change gitprompt to return 1 when not in git repository
This commit is contained in:
parent
4c582b3662
commit
7db2381674
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ git__prompt () {
|
|||
then
|
||||
/bin/echo -ne " ${purple}+$untracked"
|
||||
fi
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue