aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'internal/p10k.zsh')
-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