aboutsummaryrefslogtreecommitdiff
path: root/functions/icons.zsh
diff options
context:
space:
mode:
authorDominik Ritter <dritter03@googlemail.com>2018-11-05 04:19:06 +0300
committerDominik Ritter <dritter03@googlemail.com>2018-11-05 04:19:06 +0300
commit3d960a51692a40f99cbf3f4bcdbcb5aa11f0a1f5 (patch)
treeab29af1c287eaf097e6f92b316e01f64c4aad138 /functions/icons.zsh
parentad14807cef372994c3ba00632117f6d43b798ffb (diff)
Protect users locale
Diffstat (limited to 'functions/icons.zsh')
-rwxr-xr-xfunctions/icons.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh
index d8661e6f..28cbb709 100755
--- a/functions/icons.zsh
+++ b/functions/icons.zsh
@@ -13,6 +13,7 @@
# Initialize the icon list according to the user's `POWERLEVEL9K_MODE`.
typeset -gAH icons
+() { # add scope to protect the users locale and not overwrite LC_CTYPE!
case $POWERLEVEL9K_MODE in
'flat'|'awesome-patched')
# Awesome-Patched Font required! See:
@@ -528,6 +529,7 @@ esac
if [[ "$POWERLEVEL9K_HIDE_BRANCH_ICON" == true ]]; then
icons[VCS_BRANCH_ICON]=''
fi
+}
# Safety function for printing icons
# Prints the named icon, or if that icon is undefined, the string name.