Add proper actions character to git status
This commit is contained in:
parent
96d9cd2700
commit
45456e4027
4
zshrc
4
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"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user