Browse Source

fix(kubectx): k8s contexts with spaces (#12191)

lutra 3 months ago
parent
commit
69b0dfeadf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/kubectx/kubectx.plugin.zsh

+ 1 - 1
plugins/kubectx/kubectx.plugin.zsh

@@ -9,5 +9,5 @@ function kubectx_prompt_info() {
 
   # use value in associative array if it exists
   # otherwise fall back to the context name
-  echo "${kubectx_mapping[$current_ctx]:-${current_ctx:gs/%/%%}}"
+  echo "${kubectx_mapping[\"$current_ctx\"]:-${current_ctx:gs/%/%%}}"
 }