Change Default Crontab Editor

The default crontab editor is nano on some systems. This is a pain. You can change the crontab editor by setting the EDITOR environment variable.

In BASH:  

export EDITOR=/usr/bin/vi

In some system, you alse need to set variable VISUAL to vim:

export VISUAL=/usr/bin/vi

The default crontab editor is nano on some systems. This is a pain. You can change the crontab editor by setting the EDITOR environment variable.

In BASH:  

export EDITOR=/usr/bin/vi

In some system, you alse need to set variable VISUAL to vim:

export VISUAL=/usr/bin/vi

Leave a Reply

Your email address will not be published. Required fields are marked *