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:
parent
48487e3050
commit
fa756cd7e9
@ -98,20 +98,26 @@ function jc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function jo {
|
function jo {
|
||||||
case ${OSTYPE} in
|
if [ -z $(autojump $@) ]; then
|
||||||
linux-gnu)
|
echo "autojump: directory '${@}' not found"
|
||||||
xdg-open "$(autojump $@)"
|
echo "Try \`autojump --help\` for more information."
|
||||||
;;
|
false
|
||||||
darwin*)
|
else
|
||||||
open "$(autojump $@)"
|
case ${OSTYPE} in
|
||||||
;;
|
linux-gnu)
|
||||||
cygwin)
|
xdg-open "$(autojump $@)"
|
||||||
cmd /C start "" $(cygpath -w -a $(pwd))
|
;;
|
||||||
;;
|
darwin*)
|
||||||
*)
|
open "$(autojump $@)"
|
||||||
echo "Unknown operating system." 1>&2
|
;;
|
||||||
;;
|
cygwin)
|
||||||
esac
|
cmd /C start "" $(cygpath -w -a $(pwd))
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown operating system." 1>&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function jco {
|
function jco {
|
||||||
|
@ -62,20 +62,26 @@ function jc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function jo {
|
function jo {
|
||||||
case ${OSTYPE} in
|
if [ -z $(autojump $@) ]; then
|
||||||
linux-gnu)
|
echo "autojump: directory '${@}' not found"
|
||||||
xdg-open "$(autojump $@)"
|
echo "Try \`autojump --help\` for more information."
|
||||||
;;
|
false
|
||||||
darwin*)
|
else
|
||||||
open "$(autojump $@)"
|
case ${OSTYPE} in
|
||||||
;;
|
linux-gnu)
|
||||||
cygwin)
|
xdg-open "$(autojump $@)"
|
||||||
cmd /C start "" $(cygpath -w -a $(pwd))
|
;;
|
||||||
;;
|
darwin*)
|
||||||
*)
|
open "$(autojump $@)"
|
||||||
echo "Unknown operating system." 1>&2
|
;;
|
||||||
;;
|
cygwin)
|
||||||
esac
|
cmd /C start "" $(cygpath -w -a $(pwd))
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown operating system." 1>&2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function jco {
|
function jco {
|
||||||
|
Loading…
Reference in New Issue
Block a user