mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(kubectx): k8s contexts with spaces (#12191)
This commit is contained in:
@@ -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/%/%%}}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user