Changing the default command line text editor to Your favorite one.

Changing the default command line text editor to Your favorite one.

How?

Edit ~/.bashrc and add this:

export EDITOR=mcedit

after this line:

# User specific aliases and functions

So it looks like this:

# User specific aliases and functions
export EDITOR=mcedit

Close terminal and reopen it. Now applications like crontab or newsbeuter will use mcedit as their editor.

You can choose other editor (nano, pico) whatever works for You. Just edit the export line to suite your needs.

This change will only affect Your user. Other users on this system will use the default text file editor. If You have more then one account on this machine and You want all of them use Your favorite text editor – You will have to edit ~/.bashrc for them too.

Cheers.

Andrzej

AndrzejL

"Never meet Your heroes. Most of the time you'll only end up disappointed." White Polak Male Husband Employee Hetero Carnivorous Fugly Geek @$$hole with ADD Catholic “Some men just want to watch the world burn.”

Comments are closed.