#!/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=""