mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
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.
This commit is contained in:
parent
9c1c73a673
commit
e83ee24ea7
@ -68,7 +68,7 @@ case $PROMPT_COMMAND in
|
|||||||
*autojump*)
|
*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
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user