terminal-url-handler/terminal-url-open

7 lines
101 B
Text
Raw Normal View History

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