updated autojump.bash, removing export

exporting the prompt seems to be too harsh and breaks the shell in Emacs as the PROMPT_COMMAND for xterm (say) overwrites the 'dumb' PROMPT_COMMAND, which now is 'contaminated' with ASCII escape strings.
pull/198/head
Rasmus 11 years ago
parent 9c1c73a673
commit e83ee24ea7

@ -68,7 +68,7 @@ case $PROMPT_COMMAND in
*autojump*)
;;
*)
export PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1') ; }autojump_add_to_database"
PROMPT_COMMAND="${PROMPT_COMMAND:+$(echo "${PROMPT_COMMAND}" | awk '{gsub(/; *$/,"")}1') ; }autojump_add_to_database"
;;
esac

Loading…
Cancel
Save