diff --git a/completion/_kubectx.zsh b/completion/_kubectx.zsh index 3db03e24..04ef7f8d 100644 --- a/completion/_kubectx.zsh +++ b/completion/_kubectx.zsh @@ -10,11 +10,11 @@ if [ -f "$KUBECTX" ]; then # show '-' only if there's a saved previous context local PREV=$(cat "${KUBECTX}") - _arguments \ + _arguments >/dev/null 2>&1 \ "-d:*: :(${all_contexts})" \ "(- *): :(- ${all_contexts})" else - _arguments \ + _arguments >/dev/null 2>&1 \ "-d:*: :(${all_contexts})" \ "(- *): :(${all_contexts})" fi diff --git a/completion/_kubens.zsh b/completion/_kubens.zsh index e523caf7..921cd86b 100644 --- a/completion/_kubens.zsh +++ b/completion/_kubens.zsh @@ -1,2 +1,2 @@ #compdef kubens kns=kubens -_arguments "1: :(- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}'))" +_arguments >/dev/null 2>&1 "1: :(- $(kubectl get namespaces -o=jsonpath='{range .items[*].metadata.name}{@}{"\n"}{end}'))"