Fix error when k8s context defined but namespace isn't

Fixed simple mistake of not double qouting namespace so when
empty -z consumed -o as its input.
pull/343/head
Taylor Lawson 1 year ago
parent 76cac81206
commit 2c604c04f8
No known key found for this signature in database
GPG Key ID: DE21BF2F713C3D28

@ -637,8 +637,8 @@ function __bobthefish_prompt_k8s_context -S -d 'Show current Kubernetes context'
[ "$theme_display_k8s_namespace" = 'yes' ]
and set -l namespace (__bobthefish_k8s_namespace)
[ -z $context -o "$context" = 'default' ]
and [ -z $namespace -o "$namespace" = 'default' ]
[ -z "$context" -o "$context" = 'default' ]
and [ -z "$namespace" -o "$namespace" = 'default' ]
and return
set -l segment $k8s_glyph ' '

Loading…
Cancel
Save