Change default editor in Debian

24 Dec 2013

How to change the default editor in Debian (for root), as I keep forgetting:

sudo update-alternatives --config editor

My ~/.zshrc takes care of this for my personal account, but it’s nice to change root’s settings so a better editor (than nano) comes up when editing (for example), root’s crontab, /etc/sudoers (via visudo), and so on.

comments powered by Disqus

  « Previous: Next: »