others/editor.sh

9 lines
178 B
Bash
Executable File

#!/bin/sh
## check if it is running inside a terminal and run -t or -c flag. ##
[ -t 0 ] && emacsclient -t --alternate-editor="" \
|| emacsclient -c --alternate-editor=""