Fix git prompt in zsh

This commit is contained in:
Leon Kowarschick 2020-07-04 00:50:17 +02:00
parent fbd2f97beb
commit 5a48f2412b

View file

@ -20,7 +20,8 @@ git_status() {
if [ ! -z $BRANCH ]; then if [ ! -z $BRANCH ]; then
echo -n "(%F{$__bright_cyan}$BRANCH" echo -n "(%F{$__bright_cyan}$BRANCH"
[ ! -z "$(git status --short)" ] && echo -n "%F{$__bright_white}*%f)" [ ! -z "$(git status --short)" ] && echo -n "%F{$__bright_white}*%f"
echo -n ")"
fi fi
} }