this post was submitted on 01 May 2024
135 points (97.2% liked)

Open Source

31224 readers
307 users here now

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 7 points 6 months ago (5 children)

Does it give alternative to sudo -e (sudoedit) too?

[โ€“] NekkoDroid 2 points 6 months ago* (last edited 6 months ago)

As the other comment said, no. But I've had the idea and will to at some point write a edit script (that I can just set EDITOR= to) that would just choose one of the first common editors. That could in theory have a -0 option to run as root (there also probably looking through run0, doas, sudo and su). Not the editor, but doing the editing on a temp file and then copying with root

load more comments (4 replies)