1
0
mirror of https://github.com/wting/autojump synced 2025-06-07 09:54:06 +00:00
This commit is contained in:
Lénárd Szolnoki 2025-03-26 05:18:01 +00:00 committed by GitHub
commit 773ec06779
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,11 +36,13 @@ complete -F _autojump j
# change pwd hook
autojump_add_to_database() {
local ret_value="$?"
if [[ -f "${AUTOJUMP_ERROR_PATH}" ]]; then
(autojump --add "$(pwd)" >/dev/null 2>>${AUTOJUMP_ERROR_PATH} &) &>/dev/null
else
(autojump --add "$(pwd)" >/dev/null &) &>/dev/null
fi
return "$ret_value"
}
case $PROMPT_COMMAND in