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
Thank you for reading this post, don't forget to subscribe!
$ export VISUAL=nano; export EDITOR="$VISUAL"
This sets the
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 (
vim) that comes with most Linux distributions.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?