feat: refacto aliases/completion kubectl, helm, stern
This commit is contained in:
1 parent
2cae0f7d03
commit
0e58fa99f4
4 files changed
+4
-13
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
if (command -v kubectl &> /dev/null)
|
||||
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
|
||||
Reference in new issue
Block a user