We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3321206 commit e449e73Copy full SHA for e449e73
completion/kubectx.zsh
@@ -3,7 +3,9 @@
3
local KUBECTX="${HOME}/.kube/kubectx"
4
PREV=""
5
6
-local all_contexts="$(kubectl config get-contexts --output='name')"
+local context_array=("${(@f)$(kubectl config get-contexts --output='name')}")
7
+local all_contexts=(\'${^context_array}\')
8
+
9
if [ -f "$KUBECTX" ]; then
10
# show '-' only if there's a saved previous context
11
local PREV=$(cat "${KUBECTX}")
0 commit comments