Change the default crontab editor – Bash

Posted by | Posted in Bash, Code, Command-Line, Cron, Guides, Linux, OS X | Posted on 30-01-2011

You can change your default crontab (crontab -e) by setting the EDITOR environment variable in BASH:

hostname# which vi
hostname# export EDITOR=/usr/bin/vi
hostname# set | grep EDITOR

Comments are closed.

Join the mailing list

Check your email and confirm the subscription