summaryrefslogtreecommitdiffstats
path: root/.local/bin/editermcmd
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.local/bin/editermcmd4
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/bin/editermcmd b/.local/bin/editermcmd
new file mode 100755
index 0000000..9a7c8ba
--- /dev/null
+++ b/.local/bin/editermcmd
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+pgrep emacs >/dev/null && exec bsdsetsid emacsclient -nw "$@" >/dev/null
+exec nvim "$@"