1
0
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:
JrCs 2012-07-19 15:08:35 +02:00
parent 6a6090892d
commit 74c50133d2

View File

@ -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 {