1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00

Trying to fix Issue #177

This commit is contained in:
Jui-Shan Liang 2013-02-15 02:59:01 +08:00
parent 48487e3050
commit fa756cd7e9
2 changed files with 40 additions and 28 deletions

View File

@ -98,6 +98,11 @@ function jc {
} }
function jo { function jo {
if [ -z $(autojump $@) ]; then
echo "autojump: directory '${@}' not found"
echo "Try \`autojump --help\` for more information."
false
else
case ${OSTYPE} in case ${OSTYPE} in
linux-gnu) linux-gnu)
xdg-open "$(autojump $@)" xdg-open "$(autojump $@)"
@ -112,6 +117,7 @@ function jo {
echo "Unknown operating system." 1>&2 echo "Unknown operating system." 1>&2
;; ;;
esac esac
fi
} }
function jco { function jco {

View File

@ -62,6 +62,11 @@ function jc {
} }
function jo { function jo {
if [ -z $(autojump $@) ]; then
echo "autojump: directory '${@}' not found"
echo "Try \`autojump --help\` for more information."
false
else
case ${OSTYPE} in case ${OSTYPE} in
linux-gnu) linux-gnu)
xdg-open "$(autojump $@)" xdg-open "$(autojump $@)"
@ -76,6 +81,7 @@ function jo {
echo "Unknown operating system." 1>&2 echo "Unknown operating system." 1>&2
;; ;;
esac esac
fi
} }
function jco { function jco {