How To: Change Crontab Editor in macOS

crontab in nano editor on macOS my crontab in nano editor on macOS

macOS uses nano editor for crontab updates lately, which is not the text editor I particularly like.

With this in mind, I decided to change it. Usually it’s enough to just set the EDITOR variable to something like vim

EDITOR=vim crontab -e

or, even better:

export EDITOR=vim
crontab -e

But this no longer does the trick!

Turns out, you need to set VISUAL variable instead:

export VISUAL=vim
crontab -e

… and see how imediately better (and much more familiar to me) the experience looks: crontab in vim editor on macOS my crontab in vim editor on macOS

See Also

Keep Learning with Me

Follow me on Facebook and Twitter or jump into Telegram chat!:
I'm using Brave browser
Give it a try, it's awesome: Brave Browser
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
28 Aug 2020

Where to Find System Calls Numbers

21 Aug 2020

Syslog and ASL in macOS

07 Aug 2020

Linux Kernel 5.8

Recent Tweets