mirror of
https://github.com/romkatv/powerlevel10k
synced 2024-12-11 00:25:49 +00:00
default to POWERLEVEL9K_MODE=ascii if there is no UTF-8 locale
This commit is contained in:
parent
7760aa66d7
commit
50dec9f9f5
@ -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 New Issue
Block a user