mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
default to POWERLEVEL9K_MODE=ascii if there is no UTF-8 locale
This commit is contained in:
parent
7760aa66d7
commit
50dec9f9f5
1 changed files with 1 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
typeset -gA icons
|
||||
|
||||
function _p9k_init_icons() {
|
||||
[[ -n ${POWERLEVEL9K_MODE-} || ${langinfo[CODESET]} == (utf|UTF)(-|)8 ]] || local POWERLEVEL9K_MODE=ascii
|
||||
[[ $_p9k__icon_mode == $POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING/$POWERLEVEL9K_ICON_PADDING ]] && return
|
||||
typeset -g _p9k__icon_mode=$POWERLEVEL9K_MODE/$POWERLEVEL9K_LEGACY_ICON_SPACING/$POWERLEVEL9K_ICON_PADDING
|
||||
|
||||
|
|
Loading…
Reference in a new issue