nnn

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

commit 64644ec7542de8eb0d575133dad33c831989ac14
parent 4f43b5cea03e604e33222ab04f27f6392bd1f3db
Author: Vedant Sule <sulevedant@gmail.com>
Date:   Sun,  9 Nov 2025 10:46:05 +0000

Prefer sudoedit to sudo and remove -E flag for it

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