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