diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-23 02:27:49 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-23 02:27:49 +0200 |
commit | ba06b5fb8c054f769c303c8b02a08502d6067210 (patch) | |
tree | 4e44baf8a095cd2df863ad47e50c900660c9656e /.local/bin/editorcmd | |
parent | new package (diff) | |
download | dotfiles-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/editorcmd | 5 |
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 "$@" |