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.
This commit is contained in:
Taylor "Nekroze" Lawson
2023-05-08 12:42:24 +10:00
committed by GitHub
parent 76cac81206
commit ed896b65c3

View File

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