From 1a361f6dc10e54e34e42f1e03850692959c6b413 Mon Sep 17 00:00:00 2001 From: rupa Date: Wed, 20 Jul 2016 15:31:43 -0400 Subject: [PATCH] Async PROMPT_COMMAND for zsh h/t @balta2ar --- z.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/z.sh b/z.sh index caf2710..24e1272 100644 --- a/z.sh +++ b/z.sh @@ -218,11 +218,11 @@ if type compctl >/dev/null 2>&1; then # populate directory list, avoid clobbering any other precmds. if [ "$_Z_NO_RESOLVE_SYMLINKS" ]; then _z_precmd() { - _z --add "${PWD:a}" + (_z --add "${PWD:a}" &) } else _z_precmd() { - _z --add "${PWD:A}" + (_z --add "${PWD:A}" &) } fi [[ -n "${precmd_functions[(r)_z_precmd]}" ]] || {