8 lines
247 B
Fish
8 lines
247 B
Fish
function fish_prompt.kube
|
|
if ! test -r "$kube_config"
|
|
return
|
|
end
|
|
fish_prompt.add "$kube_symbol"
|
|
set -l kube_context (awk '($1 == "current-context:") {print $2}' "$kube_config")
|
|
fish_prompt.add "$kube_context" green
|
|
end
|