1
0
Fork 0
vdotfiles/cli/.config/fish/functions/fish_prompt.kube.fish

9 lines
242 B
Fish
Raw Permalink Normal View History

2024-11-11 12:07:22 +02:00
function fish_prompt.kube
if ! test -r "$kube_config"
return
end
fish_prompt.add "$kube_symbol"
set -l kube_context (awk -F- '($1 == "current") {print $3}' "$kube_config")
fish_prompt.add "$kube_context" green
end