#!/bin/sh cd "$(dirname "$(realpath "$1")")" eval "$EDITOR" "$@"