1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-18 02:30:07 +00:00

Merge pull request #70 from towo/fix/lang-conditional

Work around an unknown bug (most likely in antigen)
This commit is contained in:
Roman Perepelitsa 2019-05-18 09:39:21 +02:00 committed by GitHub
commit 55d887c21e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2402,7 +2402,7 @@ _p9k_init() {
fi fi
# If the terminal `LANG` is set to `C`, this theme will not work at all. # If the terminal `LANG` is set to `C`, this theme will not work at all.
if [[ $LANG == C && $POWERLEVEL9K_IGNORE_TERM_LANG == false ]]; then if [[ $LANG == "C" && $POWERLEVEL9K_IGNORE_TERM_LANG == false ]]; then
print -P "\t%F{red}WARNING!%f Your terminal's 'LANG' is set to 'C', which breaks this theme!" print -P "\t%F{red}WARNING!%f Your terminal's 'LANG' is set to 'C', which breaks this theme!"
print -P "\t%F{red}WARNING!%f Please set your 'LANG' to a UTF-8 language, like 'en_US.UTF-8'" print -P "\t%F{red}WARNING!%f Please set your 'LANG' to a UTF-8 language, like 'en_US.UTF-8'"
print -P "\t%F{red}WARNING!%f _before_ loading this theme in your \~\.zshrc. Putting" print -P "\t%F{red}WARNING!%f _before_ loading this theme in your \~\.zshrc. Putting"