From 9a920c1c4e4f94927ac061ff27c24220ab04b5d4 Mon Sep 17 00:00:00 2001 From: Nolan Leake Date: Sun, 10 Apr 2011 16:31:34 -0700 Subject: [PATCH] Don't callout to python if pwd is $HOME. --- autojump.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojump.bash b/autojump.bash index e512640..f7af83a 100644 --- a/autojump.bash +++ b/autojump.bash @@ -42,7 +42,7 @@ then mv ~/.autojump_errors "${AUTOJUMP_DATA_DIR}/autojump_errors" 2>>/dev/null fi -AUTOJUMP='{ [[ "$AUTOJUMP_HOME" == "$HOME" ]] && (autojump -a "$(pwd -P)"&)>/dev/null 2>>${AUTOJUMP_DATA_DIR}/autojump_errors;} 2>/dev/null' +AUTOJUMP='{ [[ "$AUTOJUMP_HOME" == "$HOME" && "$(pwd -P)" != "$HOME" ]] && (autojump -a "$(pwd -P)"&)>/dev/null 2>>${AUTOJUMP_DATA_DIR}/autojump_errors;} 2>/dev/null' if [[ ! $PROMPT_COMMAND =~ autojump ]]; then export PROMPT_COMMAND="${PROMPT_COMMAND:-:} ; $AUTOJUMP" fi