mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
require zsh 5.3 for nordvpn segment; fixes #148
This commit is contained in:
parent
d0fadfff97
commit
d8c509f5c9
3 changed files with 4 additions and 3 deletions
|
@ -58,7 +58,7 @@ fi
|
||||||
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||||||
context # user@host
|
context # user@host
|
||||||
# nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
|
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
|
||||||
# =========================[ Line #2 ]=========================
|
# =========================[ Line #2 ]=========================
|
||||||
newline
|
newline
|
||||||
# public_ip # public IP address
|
# public_ip # public IP address
|
||||||
|
|
|
@ -60,7 +60,7 @@ fi
|
||||||
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
|
||||||
kubecontext # current kubernetes context (https://kubernetes.io/)
|
kubecontext # current kubernetes context (https://kubernetes.io/)
|
||||||
context # user@host
|
context # user@host
|
||||||
# nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
|
nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
|
||||||
# =========================[ Line #2 ]=========================
|
# =========================[ Line #2 ]=========================
|
||||||
newline
|
newline
|
||||||
# public_ip # public IP address
|
# public_ip # public IP address
|
||||||
|
|
|
@ -4196,7 +4196,8 @@ _p9k_init() {
|
||||||
print -rP -- 'Either install %F{green}jq%f or change the value of %BPOWERLEVEL9K_SHORTEN_STRATEGY%b.'
|
print -rP -- 'Either install %F{green}jq%f or change the value of %BPOWERLEVEL9K_SHORTEN_STRATEGY%b.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if (( !$+__p9k_char2byte )) && _p9k_segment_in_use nordvpn; then
|
# There is no q+ flag before 5.3.
|
||||||
|
if (( !$+__p9k_char2byte )) && _p9k_segment_in_use nordvpn && is-at-least 5.3; then
|
||||||
typeset -gA __p9k_char2byte=()
|
typeset -gA __p9k_char2byte=()
|
||||||
local -i x=0 y=0
|
local -i x=0 y=0
|
||||||
for x in {0..7}; do
|
for x in {0..7}; do
|
||||||
|
|
Loading…
Reference in a new issue