1a51100d09883961ef023c63006dc576abcb1ae4

Author
Alexis Hildebrandt <afh@surryhill.net>
Committer
Alexis Hildebrandt <afh@surryhill.net>
Date

Message

Fix issues with character widths in emotty theme

Diff

 1diff --git a/themes/emotty.zsh-theme b/themes/emotty.zsh-theme
 2index f646b2fa8f00d801030204ad14a7974dde06aa6b..34d491ff04217cf3719fafebcb56462909d9ec94 100644
 3--- a/themes/emotty.zsh-theme
 4+++ b/themes/emotty.zsh-theme
 5@@ -51,7 +51,7 @@ root_prompt="$emoji[skull]"
 6 warn_prompt="$emoji[collision_symbol]"
 7 
 8 vcs_unstaged_glyph="%{$emoji[circled_latin_capital_letter_m]$emoji2[emoji_style] %2G%}"
 9-vcs_staged_glyph="%{$emoji[high_voltage_sign] %1G%}"
10+vcs_staged_glyph="%{$emoji[high_voltage_sign] %2G%}"
11 vcs_branch_glyph=$(print -P $'\Ue0a0') #  
12 vcs_action_glyph=$(print -P $'\U276f') # ❯
13 
14@@ -60,7 +60,7 @@ yellow="$FG[003]"
15 green="$FG[002]"
16 cyan="$FG[014]"
17 
18-prompt_glyph="%{%(#.${root_prompt}.${user_prompt})%1G%}"
19+prompt_glyph="%{%(#.${root_prompt}.${user_prompt}) %2G%}"
20 
21 # Uncomment the next line if you also like to see the warn_prompt in the prompt on the right.
22 #last_command_failed="%(?.. %F{red}%1{${warn_prompt} %1G%}%?%f)"
23@@ -80,7 +80,7 @@ zstyle ':vcs_info:*' stagedstr "${green}${vcs_staged_glyph}"
24 # %(K|F){color} set (back|fore)ground color
25 # %(k|f) reset (back|fore)ground color
26 zstyle ':vcs_info:*' max-exports 3
27-zstyle ':vcs_info:*' nvcsformats "${prompt_glyph} " '%3~' ''
28+zstyle ':vcs_info:*' nvcsformats "${prompt_glyph}" '%3~' ''
29 zstyle ':vcs_info:*' formats "${yellow}%u%c%b${vcs_branch_glyph}%f" '%S|' "$FX[bold]%r$FX[no-bold]" 
30 zstyle ':vcs_info:*' actionformats "${red}%K{white}%a${vcs_action_glyph}%k%f" '%S|' "$FX[bold]%r$FX[no-bold]"
31