diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2017-03-21 04:57:36 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 04:57:36 +0300 |
commit | 0132c5dc35eefa428e0b914c724c28c8068ac7e1 (patch) | |
tree | c431e6e1226b70760311af62bb518919dbaaef55 /functions/icons.zsh | |
parent | 33b41ced8057ac5045e848bfa01c797d55a0b24e (diff) | |
parent | 56af9bb3c3af7fde10d5bdf291173644bf99546c (diff) |
Merge pull request #446 from dritter/fix_442
Protect special characters in various modes
Diffstat (limited to 'functions/icons.zsh')
-rw-r--r-- | functions/icons.zsh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/functions/icons.zsh b/functions/icons.zsh index 343b7685..413ea19b 100644 --- a/functions/icons.zsh +++ b/functions/icons.zsh @@ -86,6 +86,8 @@ case $POWERLEVEL9K_MODE in 'awesome-fontconfig') # fontconfig with awesome-font required! See # https://github.com/gabrielelana/awesome-terminal-fonts + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # @@ -149,6 +151,8 @@ case $POWERLEVEL9K_MODE in 'nerdfont-fontconfig') # nerd-font patched (complete) font required! See # https://github.com/ryanoasis/nerd-fonts + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # @@ -212,6 +216,8 @@ case $POWERLEVEL9K_MODE in *) # Powerline-Patched Font required! # See https://github.com/Lokaltog/powerline-fonts + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons=( LEFT_SEGMENT_SEPARATOR $'\uE0B0' # RIGHT_SEGMENT_SEPARATOR $'\uE0B2' # @@ -277,6 +283,8 @@ esac # Override the above icon settings with any user-defined variables. case $POWERLEVEL9K_MODE in 'flat') + # Set the right locale to protect special characters + local LC_ALL="" LC_CTYPE="en_US.UTF-8" icons[LEFT_SEGMENT_SEPARATOR]='' icons[RIGHT_SEGMENT_SEPARATOR]='' icons[LEFT_SUBSEGMENT_SEPARATOR]='|' |