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:
parent
8377cc7a4b
commit
1a3b915896
1 changed files with 8 additions and 1 deletions
7
bin/web
7
bin/web
|
|
@ -2,7 +2,14 @@
|
||||||
|
|
||||||
plumbapple()
|
plumbapple()
|
||||||
{
|
{
|
||||||
|
case ${BROWSER:-none} in
|
||||||
|
none)
|
||||||
open "$@"
|
open "$@"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
open -a "$BROWSER" "$@"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
plumbunix()
|
plumbunix()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue