mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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…
Reference in a new issue