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