1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00

don't set OS, DEFAULT_COLOR and DEFAULT_COLOR_INVERTED

See #1735.
This commit is contained in:
Roman Perepelitsa 2022-01-25 14:32:01 +01:00
parent 9e0ef918db
commit 6c71862c5f

View file

@ -6441,7 +6441,7 @@ function _p9k_dump_state() {
unset __p9k_cached_param_pat __p9k_cached_param_sig
(( $+_p9k_preinit )) && { print -r -- $_p9k_preinit >&$fd || return }
print -r -- '_p9k_restore_state_impl() {' >&$fd || return
typeset -pm '_POWERLEVEL9K_*|_p9k_[^_]*|icons|OS|DEFAULT_COLOR|DEFAULT_COLOR_INVERTED' >&$fd || return
typeset -pm '_POWERLEVEL9K_*|_p9k_[^_]*|icons' >&$fd || return
print -r -- '}' >&$fd || return
} always {
exec {fd}>&-
@ -8401,11 +8401,6 @@ function _p9k_init_cacheable() {
_p9k_color2=7
fi
# Someone might be using these.
typeset -g OS=$_p9k_os
typeset -g DEFAULT_COLOR=$_p9k_color1
typeset -g DEFAULT_COLOR_INVERTED=$_p9k_color2
_p9k_battery_states=(
'LOW' 'red'
'CHARGING' 'yellow'