diff options
| author | Anton Bobov <anton@bobov.name> | 2026-08-20 15:13:47 +0500 |
|---|---|---|
| committer | Anton Bobov <anton@bobov.name> | 2026-08-20 15:13:47 +0500 |
| commit | 153c9344e93662984b1a5368a2722c10117db830 (patch) | |
| tree | 46b44af16387c815ab6c783415ee7dc1b8287a5c /files/.config/nnn/plugins/suedit | |
| parent | ccbc3e18f711c39482e9ed6045ed99b4da889a59 (diff) | |
nnn: update plugins
Diffstat (limited to 'files/.config/nnn/plugins/suedit')
| -rwxr-xr-x | files/.config/nnn/plugins/suedit | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/.config/nnn/plugins/suedit b/files/.config/nnn/plugins/suedit index 21dddf4..03608e8 100755 --- a/files/.config/nnn/plugins/suedit +++ b/files/.config/nnn/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 |
