Async PROMPT_COMMAND for zsh

h/t @balta2ar
This commit is contained in:
rupa committed 2016-09-30 09:58:23 -04:00
1 parent 4a8b741d19
commit 1a361f6dc1
1 file changed
+2 -2
+2 -2
View File
@@ -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]}" ]] || {