mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user