Change your crontab editor
Filed Under Tools on 2007-06-17, 21:33
For those that use *nix, crontab is a wonderful tool. But when you’re working on a new server and crontab -e is bringing up the dreaded vi to edit it, I cringe. I know some people swear by vi, but I’m a pico or nano man myself. So the first thing I do is add the following to the .profile file in my home directory:
EDITOR=pico; export EDITOR
great, vi is a nightmare if you never use it.
Pico or Nano? Fag.
If you happen to be using Midnight Commander (apt-get install mc or yum install mc), then you could also use its excellent editor.
EDITOR=”mc -e”; export EDITOR
If you happen to be using Midnight Commander (apt-get install mc or yum install mc), then you could also use its excellent editor.
EDITOR=”mc -e”; export EDITOR