Skip to content

Commit

Permalink
don't set OS, DEFAULT_COLOR and DEFAULT_COLOR_INVERTED
Browse files Browse the repository at this point in the history
See #1735.
  • Loading branch information
romkatv committed Jan 25, 2022
1 parent 9e0ef91 commit 6c71862
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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}>&-
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 6c71862

Please sign in to comment.