1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-18 10:22:00 +00:00

fix(kubectl): redirect stderr in completion generation

Fixes #11364
This commit is contained in:
Carlo Sala 2022-12-07 12:18:51 +01:00 committed by Carlo
parent 658eb01d82
commit b692ff2e15

View file

@ -10,7 +10,7 @@ if [[ ! -f "$ZSH_CACHE_DIR/completions/_kubectl" ]]; then
_comps[kubectl]=_kubectl
fi
kubectl completion zsh >| "$ZSH_CACHE_DIR/completions/_kubectl" &|
kubectl completion zsh 2> /dev/null >| "$ZSH_CACHE_DIR/completions/_kubectl" &|
# This command is used a LOT both below and in daily life
alias k=kubectl