magit () { local dir="${@:-$(pwd)}" if (( ${+INSIDE_EMACS} )); then # otherwise, the custom quit behavior makes this risky from eat emacsclient -n --eval "(magit-status \"$dir\")" else emacsclient -nc --eval "(initd/magit-client-status \"$dir\")" fi }