aboutsummaryrefslogtreecommitdiff
path: root/internal/icons.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-06 10:16:26 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-06-06 10:16:26 +0300
commit50dec9f9f5026f098ca25289d815dd63763e17e9 (patch)
tree561325e4cdd681110671c9ea91db6d4fc5eca3e8 /internal/icons.zsh
parent7760aa66d75581c221cfbfe6f94cc6d15547cdaf (diff)
default to POWERLEVEL9K_MODE=ascii if there is no UTF-8 locale
Diffstat (limited to 'internal/icons.zsh')
-rw-r--r--internal/icons.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/icons.zsh b/internal/icons.zsh
index 403beea6..bf8f31fe 100644
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -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