If you read my previous post, you should know by now that i like NANO as my text editor in the command line, but it’s default configuration annoys me;
The tab size was too long for my liking, so i needed to find a way to change it,
so after 5 mins on searching the web i found the solution.
I’ll share it with you now:
what you got to do is to open nano’s configuration file, you have to do this either as root or using sudo(or su)
the file is located here: /etc/nanorc
so you would do something like this in the terminal: ~$ sudo nano /etc/nanorc now find the line that says:
## Use this tab size instead of the default; it must be greater than 0.
set tabsize 8
Now change the number to what you want(i like 4).
Then save the file and try to open Nano again.
it should now have a tabsize of 4
![[Image: 1f61ed3341b9eda24a98e1727158bcd4.png]](http://gyazo.com/1f61ed3341b9eda24a98e1727158bcd4.png)
![[Image: 3ecf59bb02a33faafe5b982dce3b72aa.png]](http://gyazo.com/3ecf59bb02a33faafe5b982dce3b72aa.png)
![[Image: e08387b6a29e5bc3789237f29f4a6b92.png]](http://gyazo.com/e08387b6a29e5bc3789237f29f4a6b92.png)
![[Image: 20516a4e9d0e400172b9c4977c4ced7c.png]](http://gyazo.com/20516a4e9d0e400172b9c4977c4ced7c.png)
![[Image: 16e0708b6bcdf6ab292d0de9e58438f6.png]](http://gyazo.com/16e0708b6bcdf6ab292d0de9e58438f6.png)
![[Image: f9b7653093aa8a1d44117215c9422ba5.png]](http://gyazo.com/f9b7653093aa8a1d44117215c9422ba5.png)
![[Image: d6924b3bbf6437802429941f356066d3.png]](http://gyazo.com/d6924b3bbf6437802429941f356066d3.png)