1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-11 00:00:06 +00:00

replace eval with (e)

This commit is contained in:
romkatv 2019-10-04 09:44:21 +02:00
parent 8a11e83fe1
commit 6765b61823

View file

@ -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