Replacing vi with nano - permanently
Posted: 03 Feb 2014, 12:24
Many people prefer to have nano as the default terminal editor. On most cases we simply specify nano as the editor so it does not matter.
But when working with cron jobs you will be put into the vi - environment if you do a simple:
To make sure it opens with nano you can simply put this in your ~/.bashrc
Reboot or type:
and type crontab -e again; this time it will be opened in nano.
But when working with cron jobs you will be put into the vi - environment if you do a simple:
Code: Select all
crontab -eTo make sure it opens with nano you can simply put this in your ~/.bashrc
Code: Select all
export EDITOR=nanoReboot or type:
Code: Select all
source .bashrcand type crontab -e again; this time it will be opened in nano.

