2025-01-10 13:56:25 +02:00
|
|
|
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")
|
2025-01-10 13:56:25 +02:00
|
|
|
fish_prompt.add "$kube_context" green
|
|
|
|
end
|