#!/bin/sh # $Id: view,v 1.1 1997/05/20 13:12:28 sec Exp sec $ # view by Stefan `Sec` Zehl for "set web_browser" # all="$1" set -- `echo $1| sed 's/:/ /'` case $1 in ftp) ncftp "$all" ;; mailto) mutt "$2" ;; saft|irc|psyc) echo "Sorry, $1 is currently not supported %)";; http|gopher) if test x$DISPLAY = x; then w3m "$all" else netscape-remote -remote "openURL($all)" || w3m "$all" fi;; *) echo "Whoops, $1 is currently unknown to me :(";; esac