Blob
1 #!/bin/sh3 plumb1()4 {5 case $BROWSER in6 # Other browsers here7 # ...8 *opera*)9 $BROWSER -remote 'openURL('$i', new-page)'10 ;;11 *firebird*)12 $BROWSER -remote 'openURL('$i', new-window)'13 ;;14 *firefox*)15 $BROWSER -remote 'openURL('$i', new-tab)'16 ;;17 *mozilla*)18 $BROWSER -remote 'openURL('$i', new-tab)'19 ;;20 esac21 }23 if [ $# = 0 ]24 then25 plumb1 about:blank26 else27 for i28 do29 if [ -f "$i" ]30 then31 p=`pwd`32 i=`cleanname -d $p $i`33 i=file://$i34 fi35 plumb1 $i36 done37 fi39 case $BROWSER in40 *opera*)41 $BROWSER -remote 'raise()'42 esac