diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-03-13 12:34:50 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-03-13 12:34:50 +0300 |
commit | e4e165f6d739bce23d64b8439530035c6eba29de (patch) | |
tree | 82f15d40b13e5427a006ffc7a182779572370b8a /internal | |
parent | 0d662be14cab221fb9cbe9f2a22a3efc3a4c4836 (diff) |
simplify configs
- use POWERLEVEL9K_ICON_PADDING instead of
POWERLEVEL9K_VISUAL_IDENTIFIER_EXPANSION to customize padding after
icons
- remove reliance on UTF-8 locale when the config is being sourced
Diffstat (limited to 'internal')
-rw-r--r-- | internal/p10k.zsh | 2 | ||||
-rwxr-xr-x | internal/wizard.zsh | 9 |
2 files changed, 3 insertions, 8 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 9500151b..f0e4d089 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -7497,7 +7497,7 @@ _p9k_must_init() { [[ $sig == $_p9k__param_sig ]] && return 1 _p9k_deinit fi - _p9k__param_pat=$'v73\1'${ZSH_VERSION}$'\1'${ZSH_PATCHLEVEL}$'\1' + _p9k__param_pat=$'v74\1'${ZSH_VERSION}$'\1'${ZSH_PATCHLEVEL}$'\1' _p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1' _p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1' _p9k__param_pat+=$'$DEFAULT_USER\1${ZLE_RPROMPT_INDENT:-1}\1$P9K_SSH\1$__p9k_ksh_arrays\1' diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 795fd19a..09977a68 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -1776,13 +1776,8 @@ function generate_config() { else sub MODE $POWERLEVEL9K_MODE - if (( cap_narrow_icons )); then - sub VISUAL_IDENTIFIER_EXPANSION "'\${P9K_VISUAL_IDENTIFIER// }'" - if [[ $style == lean_8colors ]]; then - sub OS_ICON_CONTENT_EXPANSION "'\${P9K_CONTENT// }'" - else - sub OS_ICON_CONTENT_EXPANSION "'%B\${P9K_CONTENT// }'" - fi + if (( ! cap_narrow_icons )); then + sub ICON_PADDING moderate fi if [[ $POWERLEVEL9K_MODE == compatible ]]; then |