mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-23 23:51:58 +00:00
Protect users locale
This commit is contained in:
parent
ad14807cef
commit
3d960a5169
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue