mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Do not display the default Kubernetes namespace
This commit is contained in:
parent
864a50c42e
commit
708c5a0449
@ -637,12 +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' ]
|
|
||||||
and [ -z $namespace -o "$namespace" = 'default' ]
|
|
||||||
and return
|
|
||||||
|
|
||||||
set -l segment $k8s_glyph ' ' $context
|
set -l segment $k8s_glyph ' ' $context
|
||||||
[ -n "$namespace" ]
|
[ -n "$namespace" -a "$namespace" != 'default' ]
|
||||||
and set segment $segment ':' $namespace
|
and set segment $segment ':' $namespace
|
||||||
|
|
||||||
__bobthefish_start_segment (__bobthefish_prompt_k8s_color $context $namespace)
|
__bobthefish_start_segment (__bobthefish_prompt_k8s_color $context $namespace)
|
||||||
|
Loading…
Reference in New Issue
Block a user