feat: Ajout completion pour podman
This commit is contained in:
parent
a5671801de
commit
9535c409e7
@ -8,9 +8,16 @@ if (command -v kubectl &>/dev/null); then
|
|||||||
alias kd="kubectl describe"
|
alias kd="kubectl describe"
|
||||||
alias ks="kubectl --namespace kube-system"
|
alias ks="kubectl --namespace kube-system"
|
||||||
alias kga="kubectl get --all-namespaces"
|
alias kga="kubectl get --all-namespaces"
|
||||||
|
alias kuc="kubectl config unset current-context"
|
||||||
|
alias kgworkers="kubectl get nodes --selector '!node-role.kubernetes.io/control-plane' --label-columns heat,topology.kubernetes.io/zone,topology.kubernetes.io/region --sort-by metadata.labels.heat"
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
|
# Experimental
|
||||||
|
complete -o default -F _complete_alias kg
|
||||||
|
complete -o default -F _complete_alias kd
|
||||||
|
complete -o default -F _complete_alias kga
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
5
completion.d/podman
Normal file
5
completion.d/podman
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if (command -v podman &>/dev/null); then
|
||||||
|
source <(podman completion bash)
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user