1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
This commit is contained in:
Leonid Shevtsov 2023-09-11 00:22:16 +08:00 committed by GitHub
commit e59a87805e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,11 @@ end
# change pwd hook
function __aj_add --on-variable PWD
status --is-command-substitution; and return
autojump --add (pwd) >/dev/null 2>>$AUTOJUMP_ERROR_PATH &
if test -f "$AUTOJUMP_ERROR_PATH"
autojump --add (pwd) >/dev/null 2>>"$AUTOJUMP_ERROR_PATH" &
else
autojump --add (pwd) >/dev/null &
end
end