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