Add fish completions for kubectx and kubens

This commit is contained in:
Illya Chekrygin 2018-01-17 23:17:10 -08:00
parent 12575f8ce4
commit c813642dc3
2 changed files with 6 additions and 0 deletions

3
completion/kubectx.fish Normal file
View File

@ -0,0 +1,3 @@
# kubectx
complete -f -c kubectx -a "- (kubectl config get-contexts --output='name')"

3
completion/kubens.fish Normal file
View File

@ -0,0 +1,3 @@
# kubens
complete -f -c kubens -a "(kubectl get ns -o=custom-columns=NAME:.metadata.name --no-headers)"