From ecdb7cb4b1dff8e24c5ceada0ecc3ad6d16bd6ea Mon Sep 17 00:00:00 2001 From: Joel Schaerer Date: Thu, 29 Jan 2009 16:01:46 +0100 Subject: [PATCH] fix for files with spaces --- bashrc_example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc_example b/bashrc_example index 536f45a..4569ba7 100644 --- a/bashrc_example +++ b/bashrc_example @@ -1,5 +1,5 @@ #Add the following lines to your .bashrc for autojump to work -export PROMPT_COMMAND='autojump.py -a $(pwd -P)' +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 }