summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-28 13:10:25 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-28 13:10:25 +0300
commit5ce620436d60247aaf54a946d7eacee667f03a90 (patch)
tree991b135871ad6c4954cf7d02bba6237433fff3d0
parent5f6d73c5ac6f623c99c2e781d27c6471fa0b22bd (diff)
quote override dirs form rustup
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index eb786a10..f2c1a743 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -2736,7 +2736,7 @@ prompt_rust_version() {
_p9k_cache_stat_set
else
local MATCH
- local keys=(${^${lines%%[[:space:]]#[^[:space:]]#}}'/*')
+ local keys=(${(@)${lines%%[[:space:]]#[^[:space:]]#}/(#m)*/${(b)MATCH}/})
local vals=(${(@)lines/(#m)*/$MATCH[(I)/] ${MATCH##*[[:space:]]}})
_p9k_cache_stat_set ${keys:^vals}
fi