mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Correct return from autojump_add_to_database.
This commit is contained in:
parent
8b525c1b55
commit
1a30211d04
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user