Silent pgrep in emacs alias

This commit is contained in:
Henrik Lissner 2015-11-27 22:58:09 -05:00
parent 325255dc80
commit 09dc5e756d

View file

@ -61,7 +61,7 @@ fi
is-callable 'nvim' && alias vim='nvim'
v() { vim ${@:-.}; } # Open in vim
e() { # Open in emacs (daemon)
if pgrep Emacs; then
if pgrep Emacs 2>&1 >/dev/null; then
emacsclient -n ${@:-.};
else
/Applications/Emacs.app/Contents/MacOS/Emacs ${@:-.} &