1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-25 04:30:46 +00:00

Remove erroneous plus

Fixes #142
This commit is contained in:
Roman Perepelitsa 2019-07-30 17:24:46 +02:00 committed by GitHub
parent d8e6776ffd
commit cd8d8e4594
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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