From e83ee24ea7a165de1f1a14c49a7ad82590534ab9 Mon Sep 17 00:00:00 2001 From: Rasmus Date: Sat, 30 Mar 2013 03:36:41 +0100 Subject: [PATCH] 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. --- bin/autojump.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/autojump.bash b/bin/autojump.bash index cc5d012..2d6580b 100644 --- a/bin/autojump.bash +++ b/bin/autojump.bash @@ -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