Esoterical / voron_canbus

GNU General Public License v3.0
419 stars 59 forks source link

Suggestion to use `sudo -e`. #9

Open cmdremily opened 1 year ago

cmdremily commented 1 year ago

Using sudo -e (e for edit) instead of sudo nano has some benefits: It will use the user's preferences to pick an editor (nano by default on Pi IIRC) but it also copies the file to a temporary location and edits it there and then copies the edited copy back once you exit. This means that spurious saves do not affect the file being edited, and autosaves etc are not saved next to the target file, keeping your config directory clean.

EricZimmerman commented 11 months ago

nano is clearly the best choice and superior editor here...

/Runs away