aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2019-07-30 18:24:46 +0300
committerGitHub <noreply@github.com>2019-07-30 18:24:46 +0300
commitcd8d8e4594b0edc5b0b88c0c5d02c90b98ff8986 (patch)
treeae648d4b6f97a2898276711003584651d7b5c5e8 /internal/p10k.zsh
parentd8e6776ffd75b5febbe070f7aa61310b767eface (diff)
Remove erroneous plus
Fixes #142
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 87aaa184..5ca1bef1 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -2926,7 +2926,7 @@ prompt_kubecontext() {
cloud_account=$match[1]
cloud_zone=$match[2]-$match[3]
cloud_cluster=$match[4]
- if (( $+_POWERLEVEL9K_KUBECONTEXT_SHORTEN[(I)gke] )); then
+ if (( ${_POWERLEVEL9K_KUBECONTEXT_SHORTEN[(I)gke]} )); then
text=$cloud_cluster
fi
# arn:aws:eks:us-east-1:123456789012:cluster/cluster-01
@@ -2935,7 +2935,7 @@ prompt_kubecontext() {
cloud_zone=$match[1]
cloud_account=$match[2]
cloud_cluster=$match[3]
- if (( $+_POWERLEVEL9K_KUBECONTEXT_SHORTEN[(I)eks] )); then
+ if (( ${_POWERLEVEL9K_KUBECONTEXT_SHORTEN[(I)eks]} )); then
text=$cloud_cluster
fi
fi