Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (9 sloc) 205 Bytes
#!/bin/bash
set -u
set -e
PORT=7654
abspath=$(cd "$(dirname "$1")"; pwd)
fn=$(basename $1)
path=${abspath}/${fn}
# echo opening "http://localhost:${PORT}${path}"
open "http://localhost:${PORT}${path}"