From 8a4b58d369fa5df3954c96edc45d56971b4b6fb2 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 197c536..b9638b5 100644 --- a/z.sh +++ b/z.sh @@ -216,11 +216,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]}" ]] || {