From 824089b6bace7f5b79fe53fe37b6c00710d9e8ea Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 2 Aug 2024 01:07:46 +0200 Subject: [PATCH] zsh: fix up/down arrows in git prompt The previous arrows overlapped with some numbers, e.g. 7. --- config/zsh/prompt.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/zsh/prompt.zsh b/config/zsh/prompt.zsh index d07f233..be65546 100644 --- a/config/zsh/prompt.zsh +++ b/config/zsh/prompt.zsh @@ -160,8 +160,8 @@ fs_prompt_git() { { local sep="${fg[sep]}" local tracking=() - (($ahead)) && tracking+="${fg[ahead]}${ahead}" # ↑ - (($behind)) && tracking+="${fg[behind]}${behind}" # ↓ + (($ahead)) && tracking+="${fg[ahead]}⇡${ahead}" # ↑ ⇡ + (($behind)) && tracking+="${fg[behind]}${behind}⇣" # ↓ ⇣ (($#tracking)) && result+="${(pj:$sep:)tracking}" (($conflicts)) && result+="${fg[conflict]} %{%B%}${conflicts}%{%b%}"