[bin] Fix syntax error in `em` launcher

This commit is contained in:
Sebastian Schulze 2023-04-24 08:19:01 +02:00
parent 16df9eb28a
commit 8d53fa47b8
No known key found for this signature in database
GPG Key ID: F6BA63C6A7D3044E
1 changed files with 2 additions and 1 deletions

View File

@ -1,9 +1,10 @@
#!/usr/bin/env bash
PARENT_COMMAND=$(ps -o comm= $PPID)
TTY=""
export TTY
export TERM=xterm-24bit
if [ "${PARENT_COMMAND}" == $(basename $SHELL) ] || [ "${PARENT_COMMAND}" == "tmux: server"]; then
if [ "${PARENT_COMMAND}" == "$(basename "$SHELL")" ] || [ "${PARENT_COMMAND}" == "tmux: server" ]; then
exec emacsclient -s comacs --create-frame --tty "$@"
else
exec emacsclient --create-frame "$@"