mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
added POWERLEVEL9K_IGNORE_TERM_LANG for disabling term_lang check
This commit is contained in:
parent
3a605c7f62
commit
f7aae86b78
@ -12,7 +12,7 @@
|
|||||||
# directory. For more detailed documentation, refer to the project wiki, hosted
|
# directory. For more detailed documentation, refer to the project wiki, hosted
|
||||||
# on Github: https://github.com/bhilburn/powerlevel9k/wiki
|
# on Github: https://github.com/bhilburn/powerlevel9k/wiki
|
||||||
#
|
#
|
||||||
# There are a lot of easy ways you can customize your prompt segments and
|
# There aPOWERLEVEL9K_CHECK_TERM_COLORSre a lot of easy ways you can customize your prompt segments and
|
||||||
# theming with simple variables defined in your `~/.zshrc`.
|
# theming with simple variables defined in your `~/.zshrc`.
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
@ -1564,6 +1564,7 @@ NEWLINE='
|
|||||||
}
|
}
|
||||||
|
|
||||||
set_default POWERLEVEL9K_IGNORE_TERM_COLORS false
|
set_default POWERLEVEL9K_IGNORE_TERM_COLORS false
|
||||||
|
set_default POWERLEVEL9K_IGNORE_TERM_LANG false
|
||||||
prompt_powerlevel9k_setup() {
|
prompt_powerlevel9k_setup() {
|
||||||
# The value below was set to better support 32-bit CPUs.
|
# The value below was set to better support 32-bit CPUs.
|
||||||
# It's the maximum _signed_ integer value on 32-bit CPUs.
|
# It's the maximum _signed_ integer value on 32-bit CPUs.
|
||||||
@ -1586,6 +1587,7 @@ prompt_powerlevel9k_setup() {
|
|||||||
termColors
|
termColors
|
||||||
|
|
||||||
# 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 [[ $POWERLEVEL9K_IGNORE_TERM_LANG == false ]]; then
|
||||||
local term_lang
|
local term_lang
|
||||||
term_lang=$(echo $LANG)
|
term_lang=$(echo $LANG)
|
||||||
if [[ $term_lang == 'C' ]]; then
|
if [[ $term_lang == 'C' ]]; then
|
||||||
@ -1594,6 +1596,7 @@ prompt_powerlevel9k_setup() {
|
|||||||
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"
|
||||||
print -P "\t%F{red}WARNING!%f %F{blue}export LANG=\"en_US.UTF-8\"%f at the top of your \~\/.zshrc is sufficient."
|
print -P "\t%F{red}WARNING!%f %F{blue}export LANG=\"en_US.UTF-8\"%f at the top of your \~\/.zshrc is sufficient."
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
defined POWERLEVEL9K_LEFT_PROMPT_ELEMENTS || POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs)
|
defined POWERLEVEL9K_LEFT_PROMPT_ELEMENTS || POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir rbenv vcs)
|
||||||
defined POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS || POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
|
defined POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS || POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
|
||||||
|
Loading…
Reference in New Issue
Block a user