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 _comps[kubectl]=_kubectl
fi 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 # This command is used a LOT both below and in daily life
alias k=kubectl alias k=kubectl