summaryrefslogtreecommitdiffstats
path: root/.local/bin/editorcmd
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/editorcmd')
-rwxr-xr-x.local/bin/editorcmd5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/editorcmd b/.local/bin/editorcmd
index f79baea..ccd5359 100755
--- a/.local/bin/editorcmd
+++ b/.local/bin/editorcmd
@@ -1,3 +1,4 @@
-#!/usr/local/bin/dash
+#!/bin/sh
-exec bsdsetsid emacsclient -c -a /usr/local/bin/nvim "$@"
+pgrep emacs >/dev/null && exec bsdsetsid emacsclient -c "$@" >/dev/null
+exec nvim "$@"