Open crontab with nano

When I opened the crontab on a new server it opened in vim, I prefer nano.
And this isn’t something you need often so I wasn’t about to switch the global editor.
The following line will open the crontab in nano without changing any settings.

Clean solution 🙂

EDITOR=nano crontab -e

Source: https://askubuntu.com/a/881144/208343