feat: Ajout d'aliases pour kubectl

This commit is contained in:
Xavier Logerais 2024-06-18 12:25:09 +00:00
parent 7f3f24e14d
commit 2fa4a55223

View File

@ -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