feat: add support for some kubernetes tools

This commit is contained in:
Xavier Logerais 2021-04-23 12:57:08 +02:00
parent 5904b2693a
commit b1b8a4b3f9
3 changed files with 20 additions and 0 deletions

9
rc.d/helm Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if (which helm &> /dev/null)
then
# activate completion
source <( helm completion bash )
fi

View File

@ -8,8 +8,10 @@ then
# create a quick alias # create a quick alias
alias k=kubectl alias k=kubectl
alias ks="kubectl --namespace kube-system"
# add completion for the alias as well # add completion for the alias as well
complete -o default -F __start_kubectl k complete -o default -F __start_kubectl k
complete -o default -F __start_kubectl ks
fi fi

9
rc.d/stern Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
if (which stern &> /dev/null)
then
# activate completion
source <(stern --completion bash)
fi