dotfiles/bin/executable_em

11 lines
288 B
Plaintext
Raw Normal View History

2021-03-08 14:54:42 +01:00
#!/usr/bin/env bash
PARENT_COMMAND=$(ps -o comm= $PPID)
TTY=""
export TERM=xterm-24bit
2019-01-25 21:40:38 +01:00
if [ "${PARENT_COMMAND}" == $(basename $SHELL) ] || [ "${PARENT_COMMAND}" == "tmux: server"]; then
2022-03-04 10:00:32 +01:00
exec emacsclient -s comacs --create-frame --tty "$@"
else
exec emacsclient --create-frame "$@"
fi;