summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorJason Hutchinson <zikes@zikes.me>2017-05-26 21:29:06 +0300
committerJason Hutchinson <zikes@zikes.me>2017-05-26 21:29:06 +0300
commit932e4edeaf5508a65e269e88668b588f2e6cac0f (patch)
tree8dea4fe7f9245548eed2fdcddc00fc4294ed86a7 /powerlevel9k.zsh-theme
parentc11c3a55de2be5a9e11b55426d0afbca43aace4d (diff)
fix variable name typo
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 0d794a85..d86dfe27 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -1355,9 +1355,9 @@ prompt_dir_writable() {
# Kubernetes Current Context
prompt_kubecontext() {
- local kubectl=$(kubectl version 2>/dev/null)
+ local kubectl_version=$(kubectl version 2>/dev/null)
- if [[ -n "kubectl_version" ]]; then
+ if [[ -n "$kubectl_version" ]]; then
# Get the current Kubernetes config context's namespaece
local k8s_namespace=$(kubectl config get-contexts --no-headers | grep '*' | awk '{print $5}')
# Get the current Kuberenetes context