Silent pgrep in emacs alias
This commit is contained in:
parent
325255dc80
commit
09dc5e756d
|
@ -61,7 +61,7 @@ fi
|
||||||
is-callable 'nvim' && alias vim='nvim'
|
is-callable 'nvim' && alias vim='nvim'
|
||||||
v() { vim ${@:-.}; } # Open in vim
|
v() { vim ${@:-.}; } # Open in vim
|
||||||
e() { # Open in emacs (daemon)
|
e() { # Open in emacs (daemon)
|
||||||
if pgrep Emacs; then
|
if pgrep Emacs 2>&1 >/dev/null; then
|
||||||
emacsclient -n ${@:-.};
|
emacsclient -n ${@:-.};
|
||||||
else
|
else
|
||||||
/Applications/Emacs.app/Contents/MacOS/Emacs ${@:-.} &
|
/Applications/Emacs.app/Contents/MacOS/Emacs ${@:-.} &
|
||||||
|
|
Loading…
Reference in a new issue