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."