bin: add ec for running emacsclient

This commit is contained in:
2022-08-25 22:41:53 +01:00
parent 7584819f59
commit fbe3192266

6
bin/ec Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
emacsclient -a "" -t "$@"
else
emacsclient -n -a "" -c "$@"
fi