From b318e11a6a53770212b17b39a139b25c5fbdc4d1 Mon Sep 17 00:00:00 2001 From: xiaonaitong Date: Tue, 20 Sep 2011 18:45:42 +0800 Subject: [PATCH] don't use --bash option in function j --- autojump.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojump.bash b/autojump.bash index 59d0cb9..8b4020c 100644 --- a/autojump.bash +++ b/autojump.bash @@ -52,4 +52,4 @@ case $PROMPT_COMMAND in esac alias jumpstat="autojump --stat" -function j { new_path="$(autojump --bash $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";else false; fi } +function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";else false; fi }