Fix error when k8s context defined but namespace isn't (#343)

Fixed simple mistake of not double qouting namespace so when
empty -z consumed -o as its input.
pull/345/head
Taylor "Nekroze" Lawson 12 months ago committed by GitHub
parent 76cac81206
commit ed896b65c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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