dotfiles/.local/bin/scripts/emacstty
2022-12-13 13:25:04 +01:00

7 lines
161 B
Bash
Executable file

#!/bin/sh
# Emacs in the terminal
pgrep --full "emacs .*-daemon" >/dev/null || emacs --daemon
emacsclient --create-frame --tty "$@"
exit=$?
stty sane
exit $exit