fish: kube support
This commit is contained in:
parent
afce6858f2
commit
a8e215506a
4 changed files with 13 additions and 2 deletions
8
cli/.config/fish/functions/fish_prompt.kube.fish
Normal file
8
cli/.config/fish/functions/fish_prompt.kube.fish
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue