reverse order of default open command discovery ( fixes #70 )

This commit is contained in:
Jorge Morante 2020-01-06 11:16:28 +01:00
parent 0ce16f5685
commit 56a6f918ed
1 changed files with 4 additions and 5 deletions

View File

@ -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
} }