mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
less verbose error handling
This commit is contained in:
parent
790b52d31e
commit
f6d26b5833
@ -25,7 +25,7 @@ _autojump()
|
||||
return 0
|
||||
}
|
||||
complete -F _autojump j
|
||||
AUTOJUMP='(autojump -a "$(pwd -P)"&)>/dev/null'
|
||||
AUTOJUMP='(autojump -a "$(pwd -P)"&)>/dev/null 2>>${HOME}/.autojump_errors'
|
||||
if [[ ! $PROMPT_COMMAND =~ autojump ]]; then
|
||||
export PROMPT_COMMAND="${PROMPT_COMMAND:-:} && $AUTOJUMP"
|
||||
fi
|
||||
|
@ -15,7 +15,7 @@
|
||||
#along with autojump. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
function autojump_preexec() {
|
||||
(autojump -a "$(pwd -P)"&)>/dev/null
|
||||
(autojump -a "$(pwd -P)"&)>/dev/null 2>>${HOME}/.autojump_errors
|
||||
}
|
||||
|
||||
typeset -ga preexec_functions
|
||||
|
Loading…
Reference in New Issue
Block a user