aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/p10k-classic.zsh2
-rw-r--r--config/p10k-lean.zsh2
-rwxr-xr-xinternal/p10k.zsh3
3 files changed, 4 insertions, 3 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index ac4750e8..cbb4de47 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -58,7 +58,7 @@ fi
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host
- # nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
+ nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
# =========================[ Line #2 ]=========================
newline
# public_ip # public IP address
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 6e998971..52dcdcf4 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -60,7 +60,7 @@ fi
# rbenv # ruby version from rbenv (https://github.com/rbenv/rbenv)
kubecontext # current kubernetes context (https://kubernetes.io/)
context # user@host
- # nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
+ nordvpn # nordvpn connection status, linux only (https://nordvpn.com/)
# =========================[ Line #2 ]=========================
newline
# public_ip # public IP address
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 0068d1e8..4196e18a 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4196,7 +4196,8 @@ _p9k_init() {
print -rP -- 'Either install %F{green}jq%f or change the value of %BPOWERLEVEL9K_SHORTEN_STRATEGY%b.'
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=()
local -i x=0 y=0
for x in {0..7}; do