From 708c5a0449da8a10616c32e5d06d0c40979628fd Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Sat, 19 Dec 2020 12:11:42 -0800 Subject: [PATCH] Do not display the default Kubernetes namespace --- functions/fish_prompt.fish | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index cee8b61..0458129 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -637,12 +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' ] - and return - set -l segment $k8s_glyph ' ' $context - [ -n "$namespace" ] + [ -n "$namespace" -a "$namespace" != 'default' ] and set segment $segment ':' $namespace __bobthefish_start_segment (__bobthefish_prompt_k8s_color $context $namespace)