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 () {
|
||||
# TODO open is OSX only I think
|
||||
if [[ $(program_exists "open") = "1" ]]; then
|
||||
echo "xargs open"
|
||||
if [[ $(program_exists "cygstart") = "1" ]]; then
|
||||
echo "xargs cygstart"
|
||||
elif [[ $(program_exists "xdg-open") = "1" ]]; then
|
||||
echo "xargs xdg-open"
|
||||
elif [[ $(program_exists "cygstart") = "1" ]]; then
|
||||
echo "xargs cygstart"
|
||||
elif [[ $(program_exists "open") = "1" ]]; then
|
||||
echo "xargs open"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue