From 5ce620436d60247aaf54a946d7eacee667f03a90 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 28 Jan 2020 11:10:25 +0100 Subject: [PATCH] quote override dirs form rustup --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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