Browse Source

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.
pull/199/merge
William Ting 11 years ago
parent
commit
c17fceeff9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bin/autojump.bash

+ 1
- 1
bin/autojump.bash 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

Loading…
Cancel
Save