joelthelion/autojump — pull request #217 by Siosm (2013-06-26 20:28:04+00:00)
Title: Enable autojump only when running in interactive mode

Having autojump enabled when executing scripts will pollute the jump history with unwanted directories. This simply checks for an interactive session and enable autojump only in this case.