![]() |
Warning to anyone using GNU nano from Extras!
If anyone is using GNU nano from Extras as a text editor, beware that it automatically inserts line breaks where your lines wrap by default, which could seriously mess up any scripts / system files you're working on! To fix this run:
echo "set nowrap" > ~/.nanorc This will create a config file (used by both user and root, since they have the same home directory) for nano and tell it not to wrap (usually this is set by default on most distros). Even experienced Linux users like myself may be used to Nano having nowrap set by default, and might only find that Maemo is different after they mess up a critical config file! |
Re: Warning to anyone using GNU nano from Extras!
Real men don't use Nano....
|
Re: Warning to anyone using GNU nano from Extras!
Thanks, although I've always used "nano -w" myself for the last few years when I came across the same problem in an old debian. If it's true that most distros these days come with nowrap as standard, then maybe this should be reported as a bug against the maemo nano package.
|
Re: Warning to anyone using GNU nano from Extras!
Nano is very handy for making quick changes to text files from the terminal...if I want something fancy like vi/emacs I'll just use Scite since I'm not a masochist :p
|
Re: Warning to anyone using GNU nano from Extras!
Actually, with the nano-opt package, this file should be saved in /home/user/.nanorc as I've just discovered - it doesn't read the one in /etc at all.
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
I'm not a masochist either. |
Re: Warning to anyone using GNU nano from Extras!
Quote:
Can anyone else confirm? (make sure it's /etc/nanorc and not /etc/.nanorc) |
Re: Warning to anyone using GNU nano from Extras!
Strange, mine just ignored the file completely. I don't know why, but anyway I guess it's better to put it in /home/user as it saves a precious 10 bytes of rootfs space ;)
|
Re: Warning to anyone using GNU nano from Extras!
I've just noticed some inconsistent behavior using /etc/nanorc, going to update my first post to recommend ~/.nanorc
|
Re: Warning to anyone using GNU nano from Extras!
Quote:
|
All times are GMT. The time now is 21:27. |
vBulletin® Version 3.8.8