From c0f18f5405a64e18d883de85da9696723a5abf34 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 7 Apr 2025 23:42:38 +0300 Subject: [PATCH] fish: fix kube context --- dot_config/fish/functions/fish_prompt.kube.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/fish/functions/fish_prompt.kube.fish b/dot_config/fish/functions/fish_prompt.kube.fish index 7b0d152..b1a9f8d 100644 --- a/dot_config/fish/functions/fish_prompt.kube.fish +++ b/dot_config/fish/functions/fish_prompt.kube.fish @@ -3,6 +3,6 @@ function fish_prompt.kube return end fish_prompt.add "$kube_symbol" - set -l kube_context (awk -F- '($1 == "current") {print $3}' "$kube_config") + set -l kube_context (awk '($1 == "current-context:") {print $2}' "$kube_config") fish_prompt.add "$kube_context" green end