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
9
bin/web
9
bin/web
|
|
@ -2,7 +2,14 @@
|
|||
|
||||
plumbapple()
|
||||
{
|
||||
open "$@"
|
||||
case ${BROWSER:-none} in
|
||||
none)
|
||||
open "$@"
|
||||
;;
|
||||
*)
|
||||
open -a "$BROWSER" "$@"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
plumbunix()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue