dotfiles/.local/bin/scripts/emacstty

4 lines
131 B
Bash
Executable file

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