#!/bin/sh if [[ "$1" = /* ]]; then surf file://$1 else surf file://$(pwd)/$1 fi