feat: Ajout d'aliases pour kubectl
This commit is contained in:
parent
7f3f24e14d
commit
2fa4a55223
@ -1,11 +1,13 @@
|
|||||||
#!/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 kg="kubectl get"
|
||||||
|
alias kd="kubectl describe"
|
||||||
alias ks="kubectl --namespace kube-system"
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user