1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-15 18:30:08 +00:00

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

This commit is contained in:
lutra 2024-02-02 17:12:36 +01:00 committed by GitHub
parent b5e6392f21
commit 69b0dfeadf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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/%/%%}}"
}