mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
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:
parent
76cac81206
commit
ed896b65c3
@ -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…
Reference in New Issue
Block a user