aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2010-07-14 13:21:35 -0700
committerRuss Cox <rsc@swtch.com>2010-07-14 13:21:35 -0700
commit1a3b9158967f946f56df937adfe803873115bea2 (patch)
tree47e9d1f07df7a9b2d27516cfba103058d34888e0 /bin
parent8377cc7a4b9c49f8bad0afded9ab82c25d76d514 (diff)
downloadplan9port-1a3b9158967f946f56df937adfe803873115bea2.tar.gz
plan9port-1a3b9158967f946f56df937adfe803873115bea2.tar.bz2
plan9port-1a3b9158967f946f56df937adfe803873115bea2.zip
web: pass $BROWSER as open -a argument on OS X
(Suggestion by Martin Kühl) R=rsc http://codereview.appspot.com/1772044
Diffstat (limited to 'bin')
-rwxr-xr-xbin/web9
1 files changed, 8 insertions, 1 deletions
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()