commit fc6582b9e26929d704e843448fd8e29630b63f8f
parent 81b65359533b4fdee274947006fe597bd26195ec
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 3 Feb 2016 21:43:51 -0800
fix daemon check logic
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.zshrc b/.zshrc
@@ -59,7 +59,7 @@ function tnew { tmux new-session -As `basename $PWD` }
# Start emacs daemon if it is not running, then attach client
function e () {
- if [[ $(pgrep emacs --daemon) ]]; then
+ if [[ ! $(pgrep emacs --daemon) ]]; then
echo starting emacs daemon
emacsdaemonlog=~/.emacs-daemon.log
[ -f ~/.emacs-daemon.log ] && rm $emacsdaemonlog # delete old logfile