aboutsummaryrefslogtreecommitdiff
path: root/internal/icons.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-03-13 11:28:55 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-03-13 11:28:55 +0300
commit65065ab6581b3a143284ee33a00ab0c47389575b (patch)
tree7439b02e13b458d74dd06b89f084051dc83ea473 /internal/icons.zsh
parentcf8f7f49fe8dc0e31b327b3e076cff3149a386bd (diff)
add POWERLEVEL9K_ICON_PADDING; the only value that has effect is "none"
Diffstat (limited to 'internal/icons.zsh')
-rw-r--r--internal/icons.zsh12
1 files changed, 11 insertions, 1 deletions
diff --git a/internal/icons.zsh b/internal/icons.zsh
index 2165510f..c07cc626 100644
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -2,7 +2,7 @@ typeset -gA icons
function _p9k_init_icons() {
[[ $+_p9k__icon_mode == 1 && $_p9k__icon_mode == $POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING ]] && return
- typeset -g _p9k__icon_mode=$POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING
+ typeset -g _p9k__icon_mode=$POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING/$POWERLEVEL9K_ICON_PADDING
if [[ $POWERLEVEL9K_LEGACY_ICON_SPACING == true ]]; then
local s=
@@ -785,6 +785,16 @@ function _p9k_init_icons() {
icons[VCS_BRANCH_ICON]='@'
;;
esac
+
+ if [[ $POWERLEVEL9K_ICON_PADDING == none ]]; then
+ icons=("${(@kv)icons%% #}")
+ icons[LEFT_SEGMENT_END_SEPARATOR]+=' '
+ icons[MULTILINE_LAST_PROMPT_PREFIX]+=' '
+ icons[VCS_TAG_ICON]+=' '
+ icons[VCS_COMMIT_ICON]+=' '
+ icons[VCS_BRANCH_ICON]+=' '
+ icons[VCS_REMOTE_BRANCH_ICON]+=' '
+ fi
}
# Sadly, this is a part of public API. Its use is emphatically discouraged.