ec: tidy
This commit is contained in:
9
bin/ec
9
bin/ec
@@ -1,8 +1,9 @@
|
||||
#!/bin/bash
|
||||
TEXT_FLAGS='-a "" -t'
|
||||
GUI_FLAGS='-n -a "" -c'
|
||||
echo "Display: $DISPLAY"
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
emacsclient $TEXT_FLAGS "$@"
|
||||
# echo "Searching for text Emacs"
|
||||
emacsclient -a "" -t "$@"
|
||||
else
|
||||
emacsclient $GUI_FLAGS "$@"
|
||||
# echo "Searching for GUI Emacs"
|
||||
emacsclient -n -a "" -c "$@"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user