mirror of
https://gitlab.com/mlunax/dotfiles.git
synced 2025-04-18 16:26:50 +00:00
implement autocompletion for kubectl
This commit is contained in:
parent
6b1138aad6
commit
662e165e60
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,6 @@ alias \
|
||||||
zshrc='source ~/.zshrc' \
|
zshrc='source ~/.zshrc' \
|
||||||
dps='docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"' \
|
dps='docker ps -a --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"' \
|
||||||
c='docker compose' \
|
c='docker compose' \
|
||||||
kubectl="minikube kubectl --" \
|
|
||||||
lla='ls -lha' \
|
lla='ls -lha' \
|
||||||
cp='cp -iv' \
|
cp='cp -iv' \
|
||||||
rm='rm -iv' \
|
rm='rm -iv' \
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
|
if type "kubectl" > /dev/null; then
|
||||||
|
source <(kubectl completion zsh)
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue