summaryrefslogtreecommitdiff
path: root/plugins/kubectl
diff options
context:
space:
mode:
authorCarlo Sala <carlosalag@protonmail.com>2022-12-07 12:18:51 +0100
committerCarlo <carlosalag@protonmail.com>2022-12-07 12:20:53 +0100
commitb692ff2e1597816563cbdaeeedf0966ad9babeca (patch)
tree229fd0454a81497976b87bb4aab0c838aceb7920 /plugins/kubectl
parent658eb01d82c01d82b4263b3dc59e15232cb4cdaf (diff)
downloadzsh-b692ff2e1597816563cbdaeeedf0966ad9babeca.tar.gz
zsh-b692ff2e1597816563cbdaeeedf0966ad9babeca.tar.bz2
zsh-b692ff2e1597816563cbdaeeedf0966ad9babeca.zip
fix(kubectl): redirect stderr in completion generation
Fixes #11364
Diffstat (limited to 'plugins/kubectl')
-rw-r--r--plugins/kubectl/kubectl.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index b415d1ad8..315d3ce93 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -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