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 () {
# 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
}