# launch files in netscape open window function ns () { if [ "." = "$(dirname $1)" ]; then argpath=$(pwd) else argpath=$(dirname $1) fi url_arg=${argpath}/$(basename $1) netscape -remote "openURL(file://$url_arg)" 2>/dev/null if [ $? -ne 0 ]; then netscape-communicator "file://$url_arg" & fi unset argpath url_arg } export -f ns