ec: added alternatives.

Pascal J. Bourguignon [2021-10-05 16:46]
ec: added alternatives.
Filename
ec
diff --git a/ec b/ec
index 9b9af79..11cf468 100755
--- a/ec
+++ b/ec
@@ -4,7 +4,10 @@ socket="/tmp/emacs${UID}/server"
 if [ ! -e "$socket" ] ; then
     mfod -s 1
 fi
-for ec in /Applications/Emacs.app/Contents/MacOS/bin/emacsclient emacsclient ; do
+for ec in \
+		/Applications/Emacs.app/Contents/MacOS/bin/emacsclient \
+		/usr/local/bin/emacsclient \
+		emacsclient ; do
     if [ -x "$ec" ] ; then
         echo "$ec" "--socket-name" "$socket" "$@"
         "$ec" "--socket-name" "$socket" "$@"
ViewGit