Files
dotfiles/bin/ec

7 lines
130 B
Bash
Executable File

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