mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
revert the unicode changes. Slightly modify the code so the special characters are shown as numeric unicode
This commit is contained in:
parent
e385094292
commit
9e8246003a
1 changed files with 3 additions and 3 deletions
|
|
@ -26,7 +26,7 @@
|
|||
# A few utility functions to make it easy and re-usable to draw segmented prompts
|
||||
|
||||
CURRENT_BG='NONE'
|
||||
SEGMENT_SEPARATOR='⮀'
|
||||
SEGMENT_SEPARATOR='\ue0b0'
|
||||
|
||||
|
||||
# Begin a segment
|
||||
|
|
@ -76,7 +76,7 @@ prompt_git() {
|
|||
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)"
|
||||
if [[ -n $dirty ]]; then
|
||||
prompt_segment red black
|
||||
st=' ±'
|
||||
st=' \u00b1'
|
||||
else
|
||||
prompt_segment green black
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ prompt_git() {
|
|||
zstyle ':vcs_info:*' formats ' %u%c'
|
||||
zstyle ':vcs_info:*' actionformats ' %u%c'
|
||||
vcs_info
|
||||
echo -n "${ref/refs\/heads\//⭠ }${vcs_info_msg_0_%% }${mode}"
|
||||
echo -n "${ref/refs\/heads\//\ue0a0 }${vcs_info_msg_0_%% }${mode}"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue