web: pass $BROWSER as open -a argument on OS X

(Suggestion by Martin Kühl)

R=rsc
http://codereview.appspot.com/1772044
This commit is contained in:
Russ Cox 2010-07-14 13:21:35 -07:00
parent 8377cc7a4b
commit 1a3b915896

View file

@ -2,7 +2,14 @@
plumbapple()
{
open "$@"
case ${BROWSER:-none} in
none)
open "$@"
;;
*)
open -a "$BROWSER" "$@"
;;
esac
}
plumbunix()