Update _kubectx.zsh

This commit is contained in:
Almog Baku 2022-12-16 11:11:05 +02:00 committed by GitHub
parent 29850e1a75
commit c449c3e93c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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