summaryrefslogtreecommitdiffstats
path: root/.local/bin/editermcmd
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-23 02:27:49 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-23 02:27:49 +0200
commitba06b5fb8c054f769c303c8b02a08502d6067210 (patch)
tree4e44baf8a095cd2df863ad47e50c900660c9656e /.local/bin/editermcmd
parentnew package (diff)
downloaddotfiles-bsd-ba06b5fb8c054f769c303c8b02a08502d6067210.tar.gz
dotfiles-bsd-ba06b5fb8c054f769c303c8b02a08502d6067210.tar.bz2
dotfiles-bsd-ba06b5fb8c054f769c303c8b02a08502d6067210.tar.xz
dotfiles-bsd-ba06b5fb8c054f769c303c8b02a08502d6067210.tar.zst
dotfiles-bsd-ba06b5fb8c054f769c303c8b02a08502d6067210.zip
update
Diffstat (limited to '.local/bin/editermcmd')
-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 "$@"