mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-08-01 07:21:05 +00:00
Remove message for '-' in kubectx.zsh
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
e7131add7a
commit
5d79a0663d
@ -5,7 +5,7 @@ PREV=""
|
|||||||
if [ -f "$KUBECTX" ]; then
|
if [ -f "$KUBECTX" ]; then
|
||||||
# show '-' only if there's a saved previous context
|
# show '-' only if there's a saved previous context
|
||||||
local PREV=$(cat "${KUBECTX}")
|
local PREV=$(cat "${KUBECTX}")
|
||||||
_arguments "1: :((-\:Back\ to\ ${PREV} \
|
_arguments "1: :((- \
|
||||||
$(kubectl config get-contexts --output='name')))"
|
$(kubectl config get-contexts --output='name')))"
|
||||||
else
|
else
|
||||||
_arguments "1: :($(kubectl config get-contexts --output='name'))"
|
_arguments "1: :($(kubectl config get-contexts --output='name'))"
|
||||||
|
Loading…
Reference in New Issue
Block a user