mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2024-10-27 20:34:23 +00:00
Hide k8s context or namespace when they are 'default' (#338)
This commit is contained in:
parent
2dcfcab653
commit
06ebe3b9af
@ -641,8 +641,10 @@ function __bobthefish_prompt_k8s_context -S -d 'Show current Kubernetes context'
|
|||||||
and [ -z $namespace -o "$namespace" = 'default' ]
|
and [ -z $namespace -o "$namespace" = 'default' ]
|
||||||
and return
|
and return
|
||||||
|
|
||||||
set -l segment $k8s_glyph ' ' $context
|
set -l segment $k8s_glyph ' '
|
||||||
[ -n "$namespace" ]
|
[ "$context" != 'default' ]
|
||||||
|
and set segment $segment $context
|
||||||
|
[ "$namespace" != 'default' ]
|
||||||
and set segment $segment ':' $namespace
|
and set segment $segment ':' $namespace
|
||||||
|
|
||||||
__bobthefish_start_segment $color_k8s
|
__bobthefish_start_segment $color_k8s
|
||||||
|
Loading…
Reference in New Issue
Block a user