From 6765b618239d3c6815339468393d3354f48b1589 Mon Sep 17 00:00:00 2001 From: romkatv Date: Fri, 4 Oct 2019 09:44:21 +0200 Subject: [PATCH] replace eval with (e) --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 12e9e89c..4ce09210 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1513,7 +1513,7 @@ prompt_dir() { content=$pref$content$suf fi - (( expand )) && eval "_p9k_prompt_length \"\${\${_p9k_d::=0}+}$content\"" || _p9k_ret= + (( expand )) && _p9k_prompt_length "${(e):-"\${\${_p9k_d::=0}+}$content"}" || _p9k_ret= _p9k_cache_set "$state" "$icon" "$expand" "$content" $_p9k_ret fi