summaryrefslogtreecommitdiffstats
path: root/.local/bin/editorcmd
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/editorcmd
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 '')
-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 "$@"