Change & Set the Default crontab Editor

Most hardcore command line users and unix geeks love vi, but I prefer nano. If you want to change your default crontab editor to nano, here’s how to do this:
For a one time edit, launch the terminal and type:
EDITOR=nano crontab -e
If you want to set nano as your default editor in general, you use this command:
export EDITOR=nano
Now when you go to edit crontab, nano will be the default editor than vi. You can test this by typing:
crontab -e
Looking beyond Mac OS X, this should work in Linux as well.

This applies to what, 4 people? Nobody uses this stuff.
… nobody meaning every Sys Admin on the face of the earth
The human race is doomed.
Thank you. I thought I was the only one who used Nano.
Not at all. Only dumb people don’t use the console. Those people who only need one mouse button
Mhhh.
This set the default editor for the session.
If you want to make it default, you have to change /etc/bashrc or /etc/profile
just add the line to .bash_profile then??
Yes, if you have one in your /home.
vi is for neckbeards
Thanks, I use nano on a Linux server at work and when I went to do a crontab entry on my home OS X box I was lost with vim :/