Default text Editor On cPanel 11

A

aisagtr

Guest
Whenever I do a crontab -e, I always see teh VI editor instead of the nano which I have installed.

Anyone any idea as to how to change this? I hate VI.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,441
31
473
Go on, have a guess
For the root account only, edit /root/.bashrc and add the lines:

export EDITOR="nano"
export VISUAL="nano"


For all users, add those lines to /etc/bashrc
 

smile

Well-Known Member
Oct 2, 2004
68
0
156
Is their any restart required after this, I tried and it still doesn't works
 

DeepakW

Active Member
Nov 13, 2005
33
0
156
Hi,

I think no need to restart any service just logout from the current SSH session and
login again. Now check it again, it should be working.

Please make sure you are making the changes for the user which you are using to
access SSH.