1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Merge pull request #198 from pank/master

Disable export of PROMPT_COMMAND for bash shells.

Not using export means sub shells can't see the env
variable changes, but this shouldn't be an issue since
new sub shells should be sourcing ~/.bashrc anyway.
This commit is contained in:
William Ting 2013-03-29 20:22:42 -07:00
commit c17fceeff9

View File

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