1
0
Fork 0

fish: fix kube context

This commit is contained in:
Von Random 2025-04-07 23:42:38 +03:00
parent e3ebeaaf42
commit c0f18f5405

View file

@ -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