diff options
Diffstat (limited to 'config/zshrc')
-rw-r--r-- | config/zshrc/.zshrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/zshrc/.zshrc b/config/zshrc/.zshrc index 1a96877..5b881d9 100644 --- a/config/zshrc/.zshrc +++ b/config/zshrc/.zshrc @@ -85,7 +85,7 @@ RPROMPT='%F{red}$(parse_git_remote)$(parse_git_status)%f%F{green}$(parse_git_bra setopt prompt_subst parse_git_remote() { - b="$(git branch -vv 2>/dev/null | grep "^*" | sed 's/^.\+: \([^ ]\+\) .\+$/\1/')" + b="$(git branch -v 2> /dev/null | grep "^*" | sed 's/.\+\[\([^ ]\+\).*$/\1/')" if [ "$b" = "behind" ] then echo -n "v " |