1
0
Fork 0
vdotfiles/dot_config/fish/functions/fish_prompt.kube.fish

9 lines
247 B
Fish
Raw Normal View History

function fish_prompt.kube
if ! test -r "$kube_config"
return
end
fish_prompt.add "$kube_symbol"
2025-04-07 23:42:38 +03:00
set -l kube_context (awk '($1 == "current-context:") {print $2}' "$kube_config")
fish_prompt.add "$kube_context" green
end