diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-02 17:55:05 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-03-02 17:56:59 +0100 |
commit | 11f92a693c3e1ddc393123bb9178ee8074845f03 (patch) | |
tree | b233c5c1fe1d2b67299a2dbcafade21bbe7e4984 /config/zshrc | |
parent | ef0927c7f48ef5bff9c45d1a3ba1169f20c64ade (diff) |
change git remote status to arrows
Diffstat (limited to 'config/zshrc')
-rw-r--r-- | config/zshrc/.zshrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/zshrc/.zshrc b/config/zshrc/.zshrc index 5b881d9..a91a701 100644 --- a/config/zshrc/.zshrc +++ b/config/zshrc/.zshrc @@ -81,17 +81,17 @@ add-zsh-hook -Uz precmd rehash_precmd # prompt PS1=' %B%(#.%F{1}.%F{13})[%n%b%f@%B%F{6}%m]%b%f %3~ ' -RPROMPT='%F{red}$(parse_git_remote)$(parse_git_status)%f%F{green}$(parse_git_branch)%f%(?.. %?)' +RPROMPT='%F{blue}$(parse_git_remote)%f%F{red}$(parse_git_status)%f%F{green}$(parse_git_branch)%f%(?.. %?)' setopt prompt_subst parse_git_remote() { b="$(git branch -v 2> /dev/null | grep "^*" | sed 's/.\+\[\([^ ]\+\).*$/\1/')" if [ "$b" = "behind" ] then - echo -n "v " + echo -n "↓ " elif [ "$b" = "ahead" ] then - echo -n "^ " + echo -n "↑ " fi } parse_git_branch() { |