From 45456e402735830cedfeb0771f0ec6767b2debd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20P=C5=82azie=C5=84ski?= Date: Fri, 27 Oct 2017 23:56:31 +0200 Subject: [PATCH] Add proper actions character to git status --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 8650c07..3b258eb 100644 --- a/zshrc +++ b/zshrc @@ -32,6 +32,7 @@ if [[ -n $MULTIBYTE_SUPPORTED ]] then NO_JOBS_CHARACTER="\u2022" AHEAD_CHARACTER="\ue174 " BEHIND_CHARACTER="\ue175 " + ACTIONS_CHARACTER="\ue831" SEGMENT_SEPARATOR_FORWARD="\ue0b0" SEGMENT_SEPARATOR_BACKWARD="\ue0b2" else @@ -47,6 +48,7 @@ else NO_JOBS_CHARACTER="." AHEAD_CHARACTER="+" BEHIND_CHARACTER="-" + ACTIONS_CHARACTER="!" SEGMENT_SEPARATOR_FORWARD="" SEGMENT_SEPARATOR_BACKWARD="" fi @@ -347,7 +349,7 @@ zstyle ':vcs_info:hg*' unstagedstr "$CHANGES_CHARACTER" zstyle ':vcs_info:hg*' hgrevformat "%r" # default "%r:%h" zstyle ':vcs_info:git*' formats "$BRANCH_CHARACTER%b%u%c%m" # git is standard -zstyle ':vcs_info:git*' actionformats "$BRANCH_CHARACTER%b%u%c%m [%a]" +zstyle ':vcs_info:git*' actionformats "$BRANCH_CHARACTER%b%u%c%m $ACTIONS_CHARACTER%a" zstyle ':vcs_info:git*' unstagedstr " $UNSTAGED_CHARACTER" zstyle ':vcs_info:git*' stagedstr " $CHANGES_CHARACTER"