Don Quijote de la Mancha -Miguel de Cervantes-



Setting nano as default editor Debian based Linux OS,s

To set Nano as the default editor for your user account in Debian-based Linux systems, you can add the following line to the end of your .bashrc file:

Thank you for reading this post, don't forget to subscribe!

$ export VISUAL=nano; export EDITOR="$VISUAL"

This sets the VISUAL and EDITOR environment variables to nano, which tells the system to use Nano as the default text editor.

After you add this line to your .bashrc file, save the changes and exit the editor. Then, run the following command to reload the .bashrc file and apply the changes:

$ source ~/.bashrc

From now on, any time you open a text editor from the terminal (e.g. with the git commit command), Nano will be used as the default editor instead of the default editor (vi or vim) that comes with most Linux distributions.

How useful was this post?

Click on a star to rate it!

Average rating 2 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

0 - 0

Thank You For Your Vote!

Sorry You have Already Voted!


Enjoy this blog? Please spread the word :)