#!/bin/bash set -ue dir="${1#terminal://}" x-terminal-emulator -e "sh -c 'cd "${dir}" && \$SHELL'"