From 76484c1d14012997715d01b4214eb1b5bbeabeff Mon Sep 17 00:00:00 2001 From: elcerdo Date: Sat, 28 Mar 2009 01:19:58 +0100 Subject: [PATCH] Revert "Just a Test" This reverts commit 0136d8f138537ef0e16b1f19e1c7fd350b867e1e. --- autojump.bash | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/autojump.bash b/autojump.bash index e9480ae..a730ca7 100644 --- a/autojump.bash +++ b/autojump.bash @@ -1,7 +1,4 @@ #This shell snippet sets the prompt command and the necessary aliases - - -# TODO _autojump() { local cur @@ -12,12 +9,6 @@ _autojump() return 0 } complete -F _autojump j - -function preexec() { - autojump -a "$(pwd -P)"&)>/dev/null -} - -# OK - +export PROMPT_COMMAND='(autojump -a "$(pwd -P)"&)>/dev/null' alias jumpstat="autojump --stat" function j { new_path="$(autojump $@)";if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; cd "$new_path";fi }