From 11f92a693c3e1ddc393123bb9178ee8074845f03 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 2 Mar 2023 17:55:05 +0100 Subject: change git remote status to arrows --- config/zshrc/.zshrc | 6 +++--- 1 file 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() { -- cgit v1.2.3