nnn

mirror of https://github.com/jarun/nnn
Log | Files | Refs | README | LICENSE

commit 2ec3ad4302dd0c08a4788953d5896a3975072fc8
parent ca544145662defcad40d2729e687fafd38ec561c
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun,  9 Nov 2025 14:31:06 +0000

Merge pull request #2087 from SammyCyber/suedit

suedit plugin: prefer sudoedit over sudo and remove nonexistent -E flag for sudoedit
Diffstat:
Mplugins/suedit | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/suedit b/plugins/suedit @@ -7,10 +7,10 @@ EDITOR="${EDITOR:-vim}" -if type sudo >/dev/null 2>&1; then +if type sudoedit >/dev/null 2>&1; then + sudoedit "$1" +elif type sudo >/dev/null 2>&1; then sudo -E "$EDITOR" "$1" -elif type sudoedit >/dev/null 2>&1; then - sudoedit -E "$1" elif type doas >/dev/null 2>&1; then doas "$EDITOR" "$1" fi