From 1d31f720f466472da89eaada9b9b95d0bc075fe5 Mon Sep 17 00:00:00 2001 From: Jui-Shan Liang Date: Tue, 12 Feb 2013 03:16:13 +0800 Subject: [PATCH] Fixed issue: Command "jc" doesn't jump correctly if sibling directories have same prefix --- bin/autojump.bash | 2 +- bin/autojump.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/autojump.bash b/bin/autojump.bash index 37e2370..46c3259 100644 --- a/bin/autojump.bash +++ b/bin/autojump.bash @@ -93,7 +93,7 @@ function jc { if [[ ${@} == -* ]]; then j ${@} else - j $(pwd) ${@} + j $(pwd)/ ${@} fi } diff --git a/bin/autojump.zsh b/bin/autojump.zsh index 197edbd..d653867 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -57,7 +57,7 @@ function jc { if [[ ${@} == -* ]]; then j ${@} else - j $(pwd) ${@} + j $(pwd)/ ${@} fi }