diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-08 12:42:31 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-08 12:42:31 +0300 |
commit | b2ddbdb90d865c5d04c721b79d4a99d22287f340 (patch) | |
tree | e2e466dc7ccb5821e2ccf1ccd5e467a8cf6a8e8f | |
parent | 71a0b76ac048867d9e7790a5509d7988dfc73061 (diff) |
remove one space after VCS_BRANCH_ICON when using wide icons
-rw-r--r-- | config/p10k-classic.zsh | 2 | ||||
-rw-r--r-- | config/p10k-lean.zsh | 2 | ||||
-rwxr-xr-x | internal/wizard.zsh | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 925f08a0..c9cc2e59 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -272,7 +272,7 @@ fi # typeset -g POWERLEVEL9K_DIR_CLASSES=() #####################################[ vcs: git status ]###################################### - # Branch icon. Set this parameter to '\uF126' for the popular Powerline branch icon. + # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon. typeset -g POWERLEVEL9K_VCS_BRANCH_ICON= # Untracked files icon. It's really a question mark, your font isn't broken. diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 175a0d41..d34d0c2b 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -255,7 +255,7 @@ fi # typeset -g POWERLEVEL9K_DIR_CLASSES=() #####################################[ vcs: git status ]###################################### - # Branch icon. Set this parameter to '\uF126' for the popular Powerline branch icon. + # Branch icon. Set this parameter to '\uF126 ' for the popular Powerline branch icon. typeset -g POWERLEVEL9K_VCS_BRANCH_ICON= # Untracked files icon. It's really a question mark, your font isn't broken. diff --git a/internal/wizard.zsh b/internal/wizard.zsh index f4558ce5..e78129f5 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -443,8 +443,8 @@ function ask_extra_icons() { os_icon=${os_icon// } dir_icon=${dir_icon// } vcs_icon=${vcs_icon// } - branch_icon=${branch_icon// } fi + branch_icon=${branch_icon// } if [[ $style == classic ]]; then os_icon="%255F$os_icon%f" else @@ -938,8 +938,7 @@ function generate_config() { fi if [[ -n ${(j::)extra_icons} ]]; then - local branch_icon=$icons[VCS_BRANCH_ICON] - (( cap_narrow_icons )) && branch_icon=${branch_icon// } + local branch_icon=${icons[VCS_BRANCH_ICON]// } sub VCS_BRANCH_ICON "'$branch_icon '" uncomment os_icon else |