[emacs] Keep emacs from stumbling over the foot TERM

This commit is contained in:
Sebastian Schulze 2021-07-28 08:52:59 +02:00
parent 01f89222bb
commit d909ad9320
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash
PARENT_COMMAND=$(ps -o comm= $PPID)
TTY=""
export TERM=xterm-24bit
if [ "${PARENT_COMMAND}" == $(basename $SHELL) ]; then
exec emacsclient --create-frame --tty "$@"