From 26db68a8e8d0991b7e80bfc3e5c16be7e607b810 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Sun, 24 Nov 2013 23:26:23 +0100 Subject: [PATCH] zsh/jo: Defer -options to j --- bin/autojump.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/autojump.zsh b/bin/autojump.zsh index 35dc5a5..1209519 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -59,6 +59,11 @@ function jc { } function jo { + if [[ ${@} == -* ]]; then + j ${@} + return + fi + if [ -z $(autojump $@) ]; then echo "autojump: directory '${@}' not found" echo "Try \`autojump --help\` for more information."