From af78a4cd2b73800af86db8d999d80b1ef0e9bd75 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 2 Mar 2004 23:11:58 +0000 Subject: Little tweaks and documentation. --- bin/web | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 bin/web (limited to 'bin/web') diff --git a/bin/web b/bin/web new file mode 100755 index 00000000..39615200 --- /dev/null +++ b/bin/web @@ -0,0 +1,35 @@ +#!/bin/sh + +plumb1() +{ + case $BROWSER in + # Other browsers here + # ... + *opera*) + $BROWSER -remote 'openURL('$i', new-page)' + ;; + *firebird*) + $BROWSER -remote 'openURL('$i', new-window)' + ;; + esac +} + +if [ $# = 0 ] +then + plumb1 about:blank +else + for i + do + if [ -f "$i" ] + then + i=file://`pwd`/$i + fi + plumb1 $i + done +fi + +case $BROWSER in +*opera*) + $BROWSER -remote 'raise()' +esac + -- cgit v1.2.3