Async PROMPT_COMMAND for zsh
h/t @balta2ar
This commit is contained in:
1 parent
88a31c2162
commit
8a4b58d369
1 file changed
+2
-2
@@ -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]}" ]] || {
|
||||
|
||||
Reference in new issue
Block a user