mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Add autojump to the end of PROMPT_COMMAND
This commit is contained in:
parent
6a6090892d
commit
74c50133d2
@ -59,7 +59,7 @@ AUTOJUMP='{ [[ "$AUTOJUMP_HOME" == "$HOME" ]] && (autojump -a "$(pwd ${_PWD_ARGS
|
||||
|
||||
case $PROMPT_COMMAND in
|
||||
*autojump*) ;;
|
||||
*) export PROMPT_COMMAND="$AUTOJUMP ; ${PROMPT_COMMAND:-:}";;
|
||||
*) export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ; }$AUTOJUMP";;
|
||||
esac
|
||||
|
||||
function j {
|
||||
|
Loading…
Reference in New Issue
Block a user