mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
handle white space properly when opening with file manager
This commit is contained in:
@@ -100,10 +100,10 @@ function jc {
|
|||||||
function jo {
|
function jo {
|
||||||
case ${OSTYPE} in
|
case ${OSTYPE} in
|
||||||
linux-gnu)
|
linux-gnu)
|
||||||
xdg-open $(autojump $@)
|
xdg-open "$(autojump $@)"
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
open $(autojump $@)
|
open "$(autojump $@)"
|
||||||
;;
|
;;
|
||||||
cygwin)
|
cygwin)
|
||||||
cmd /C start "" $(cygpath -w -a $(pwd))
|
cmd /C start "" $(cygpath -w -a $(pwd))
|
||||||
|
|||||||
@@ -64,10 +64,10 @@ function jc {
|
|||||||
function jo {
|
function jo {
|
||||||
case ${OSTYPE} in
|
case ${OSTYPE} in
|
||||||
linux-gnu)
|
linux-gnu)
|
||||||
xdg-open $(autojump $@)
|
xdg-open "$(autojump $@)"
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
open $(autojump $@)
|
open "$(autojump $@)"
|
||||||
;;
|
;;
|
||||||
cygwin)
|
cygwin)
|
||||||
cmd /C start "" $(cygpath -w -a $(pwd))
|
cmd /C start "" $(cygpath -w -a $(pwd))
|
||||||
|
|||||||
Reference in New Issue
Block a user