At the cost of creating a new, "internal" function (_opengit_open), tests the $MACHTYPE environment variable to determine if running under OS X. If so, uses the command open to open the Github URL; otherwise uses the (previously hard-coded) xdg-open command.
Tested under OS X (duh; 10.9) as well as Linux Mint 15.
At the cost of creating a new, "internal" function (
_opengit_open
), tests the$MACHTYPE
environment variable to determine if running under OS X. If so, uses the commandopen
to open the Github URL; otherwise uses the (previously hard-coded)xdg-open
command.Tested under OS X (duh; 10.9) as well as Linux Mint 15.