From 7cf5235630ddfddab5d65e0706447ab6f1531508 Mon Sep 17 00:00:00 2001 From: Joel Schaerer Date: Wed, 14 Jan 2009 12:09:29 +0100 Subject: [PATCH] bashrc example --- bashrc_example | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 bashrc_example diff --git a/bashrc_example b/bashrc_example new file mode 100644 index 0000000..536f45a --- /dev/null +++ b/bashrc_example @@ -0,0 +1,5 @@ +#Add the following lines to your .bashrc for autojump to work + +export PROMPT_COMMAND='autojump.py -a $(pwd -P)' +alias jstat="autojump.py --stat" +function j { new_path=$(autojump.py $@);if [ -n "$new_path" ]; then echo -e "\\033[31m${new_path}\\033[0m"; echo; cd "$new_path";ls -ltr --color=yes| tail -n 60;fi }