dotfiles/.local/bin/scripts/emacstty
2023-01-10 00:47:27 +01:00

7 lines
151 B
Bash
Executable file

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