diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 12573f06..da1a8f95 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -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 ${@:-.} &