feat: Ajout d'aliases pour kubectl
This commit is contained in:
parent
7f3f24e14d
commit
2fa4a55223
@ -1,14 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
if (command -v kubectl &> /dev/null)
|
if (command -v kubectl &>/dev/null); then
|
||||||
then
|
|
||||||
|
|
||||||
# create a quick alias
|
# create some usefull aliases
|
||||||
alias k=kubectl
|
alias k="kubectl"
|
||||||
alias ks="kubectl --namespace kube-system"
|
alias kg="kubectl get"
|
||||||
|
alias kd="kubectl describe"
|
||||||
|
alias ks="kubectl --namespace kube-system"
|
||||||
|
alias kga="kubectl get --all-namespaces"
|
||||||
|
|
||||||
# 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
|
complete -o default -F __start_kubectl ks
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user