[emacs] Also assume terminal-mode for tmux encapsulated sessions

This commit is contained in:
Sebastian Schulze 2022-03-22 20:45:15 +01:00
parent 449fcffb9f
commit affa890938
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ PARENT_COMMAND=$(ps -o comm= $PPID)
TTY=""
export TERM=xterm-24bit
if [ "${PARENT_COMMAND}" == $(basename $SHELL) ]; then
if [ "${PARENT_COMMAND}" == $(basename $SHELL) ] || [ "${PARENT_COMMAND}" == "tmux: server"]; then
exec emacsclient -s comacs --create-frame --tty "$@"
else
exec emacsclient --create-frame "$@"