diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-11-05 04:19:06 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-11-05 04:19:06 +0300 |
commit | 3d960a51692a40f99cbf3f4bcdbcb5aa11f0a1f5 (patch) | |
tree | ab29af1c287eaf097e6f92b316e01f64c4aad138 | |
parent | ad14807cef372994c3ba00632117f6d43b798ffb (diff) |
Protect users locale
-rwxr-xr-x | functions/icons.zsh | 2 |
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. |