mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-19 20:29:45 +01:00
fix(kubectx): k8s contexts with spaces (#12191)
This commit is contained in:
parent
b5e6392f21
commit
69b0dfeadf
1 changed files with 1 additions and 1 deletions
|
@ -9,5 +9,5 @@ function kubectx_prompt_info() {
|
||||||
|
|
||||||
# use value in associative array if it exists
|
# use value in associative array if it exists
|
||||||
# otherwise fall back to the context name
|
# otherwise fall back to the context name
|
||||||
echo "${kubectx_mapping[$current_ctx]:-${current_ctx:gs/%/%%}}"
|
echo "${kubectx_mapping[\"$current_ctx\"]:-${current_ctx:gs/%/%%}}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue