Cygwin doesn't have xdg-open yet, so using cygstart is a common workaround for this (see http://www.dwheeler.com/essays/open-files-urls.html ), if this is accepted, adding windows support should be done equally, using "cmd /c start" instead of xdg-open.
Instead of creating these small functions, would it be better to just set platfrom=$(uname) globally and query from there?
Cygwin doesn't have xdg-open yet, so using cygstart is a common workaround for this (see http://www.dwheeler.com/essays/open-files-urls.html ), if this is accepted, adding windows support should be done equally, using "cmd /c start" instead of xdg-open.
Instead of creating these small functions, would it be better to just set platfrom=$(uname) globally and query from there?