1
0
Fork 0

fish: kube support

This commit is contained in:
Von Random 2024-11-11 12:07:22 +02:00
parent afce6858f2
commit a8e215506a
4 changed files with 13 additions and 2 deletions

View file

@ -0,0 +1,8 @@
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