feat: add support for some kubernetes tools
This commit is contained in:
parent
5904b2693a
commit
b1b8a4b3f9
9
rc.d/helm
Normal file
9
rc.d/helm
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if (which helm &> /dev/null)
|
||||
then
|
||||
|
||||
# activate completion
|
||||
source <( helm completion bash )
|
||||
|
||||
fi
|
@ -8,8 +8,10 @@ then
|
||||
|
||||
# create a quick alias
|
||||
alias k=kubectl
|
||||
alias ks="kubectl --namespace kube-system"
|
||||
|
||||
# add completion for the alias as well
|
||||
complete -o default -F __start_kubectl k
|
||||
complete -o default -F __start_kubectl ks
|
||||
|
||||
fi
|
||||
|
9
rc.d/stern
Normal file
9
rc.d/stern
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
if (which stern &> /dev/null)
|
||||
then
|
||||
|
||||
# activate completion
|
||||
source <(stern --completion bash)
|
||||
|
||||
fi
|
Loading…
Reference in New Issue
Block a user