reverse order of default open command discovery ( fixes #70 )
This commit is contained in:
parent
0ce16f5685
commit
56a6f918ed
|
@ -72,13 +72,12 @@ function default_copy_command () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function default_open_command () {
|
function default_open_command () {
|
||||||
# TODO open is OSX only I think
|
if [[ $(program_exists "cygstart") = "1" ]]; then
|
||||||
if [[ $(program_exists "open") = "1" ]]; then
|
echo "xargs cygstart"
|
||||||
echo "xargs open"
|
|
||||||
elif [[ $(program_exists "xdg-open") = "1" ]]; then
|
elif [[ $(program_exists "xdg-open") = "1" ]]; then
|
||||||
echo "xargs xdg-open"
|
echo "xargs xdg-open"
|
||||||
elif [[ $(program_exists "cygstart") = "1" ]]; then
|
elif [[ $(program_exists "open") = "1" ]]; then
|
||||||
echo "xargs cygstart"
|
echo "xargs open"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue