[bin] Fix syntax error in `em` launcher
This commit is contained in:
parent
16df9eb28a
commit
8d53fa47b8
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in New Issue