From 1a3b9158967f946f56df937adfe803873115bea2 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 14 Jul 2010 13:21:35 -0700 Subject: =?UTF-8?q?web:=20pass=20$BROWSER=20as=20open=20-a=20argument=20on?= =?UTF-8?q?=20OS=20X=20(Suggestion=20by=20Martin=20K=C3=BChl)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit R=rsc http://codereview.appspot.com/1772044 --- bin/web | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'bin/web') diff --git a/bin/web b/bin/web index e8ea86e7..82e8df0e 100755 --- a/bin/web +++ b/bin/web @@ -2,7 +2,14 @@ plumbapple() { - open "$@" + case ${BROWSER:-none} in + none) + open "$@" + ;; + *) + open -a "$BROWSER" "$@" + ;; + esac } plumbunix() -- cgit v1.2.3