diff options
author | Russ Cox <rsc@swtch.com> | 2008-10-08 14:58:14 -0700 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-10-08 14:58:14 -0700 |
commit | 6c99870701d4a71d429a26f357859416c875b2fb (patch) | |
tree | c0527ed678fdf958b325fe57bf160ea2233bf3b7 /bin/web | |
parent | 362264eb516483d6e2f45ba1e0ab6bcaf2d4f0ee (diff) | |
download | plan9port-6c99870701d4a71d429a26f357859416c875b2fb.tar.gz plan9port-6c99870701d4a71d429a26f357859416c875b2fb.tar.bz2 plan9port-6c99870701d4a71d429a26f357859416c875b2fb.zip |
web: add camino as a $BROWSER
Diffstat (limited to 'bin/web')
-rwxr-xr-x | bin/web | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -30,6 +30,21 @@ plumbsafari() ' | osascript } +plumbcamino() +{ + echo ' + tell application "Camino" + activate + tell application "System Events" + tell process "camino" + keystroke "t" using {command down} + end tell + end tell + Get URL "'$1'" + end tell + ' | osascript +} + plumbapple() { case ${BROWSER:-none} in @@ -39,8 +54,14 @@ plumbapple() safari) plumbsafari "$@" ;; + camino) + plumbcamino "$@" + ;; none) - if [ -d /Applications/Firefox.app ] + if [ -d /Applications/Camino.app ] + then + plumbcamino "$@" + elif [ -d /Applications/Firefox.app ] then plumbfirefox "$@" else |