Files
dotfiles/bin/ec
2023-03-20 12:18:08 +00:00

10 lines
202 B
Bash
Executable File

#!/bin/bash
echo "Display: $DISPLAY"
if [ -z "$DISPLAY" ]; then
# echo "Searching for text Emacs"
emacsclient -a "" -t "$@"
else
# echo "Searching for GUI Emacs"
emacsclient -n -a "" -c "$@"
fi