Bootstrap FreeKB - Linux Fundamentals - $EDITOR variable (default editor)
Linux Fundamentals - $EDITOR variable (default editor)

Updated:   |  Linux Fundamentals articles

The global $EDITOR variable is used to define your default file editor, such as the vi or nano edtiors. You can define your preferred default file editor in your ~/.bash_profile or ~/.profile file, like this.

In this example, programs that are configured to use $EDITOR will use nano as the editor.

export EDITOR=nano

 

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter fe8787 in the box below so that we can be sure you are a human.