The Nano package contains a small, simple text editor which aims to replace Pico, the default editor in the Pine package.
This package is known to build and work properly using an LFS-8.1 platform.
Download (HTTP): https://www.nano-editor.org/dist/v2.8/nano-2.8.7.tar.xz
Download MD5 sum: 733b3f80a0a2f44fb25de6c6d3a583cf
Download size: 1.4 MB
Estimated disk space required: 16 MB
Estimated build time: 0.2 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/Nano
Install Nano by running the following commands:
./configure --prefix=/usr \ --sysconfdir=/etc \ --enable-utf8 \ --docdir=/usr/share/doc/nano-2.8.7 && make
This package does not come with a test suite.
Now, as the root
user:
make install && install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-2.8.7
--enable-utf8
: This switch
enables unicode support in Nano.
--with-slang
: This forces Nano to use S-Lang. Use this if installed.
Example configuration (create as a system-wide /etc/nanorc
or a personal ~/.nanorc
file)
set autoindent
set constantshow
set fill 72
set historylog
set multibuffer
set nohelp
set nowrap
set positionlog
set quickblank
set regexp
set smooth
set suspend
Another example is the nanorc.sample
file in the installed
documentation directory. It includes color configurations and has
some documentation included in the comments.
Syntax highlighting is provided for several file types, in
/usr/share/nano/
directory. E.g.,
for shell scripts, you can insert include
/usr/share/nano/sh.nanorc
in the personal or global
configuration file. If you wish highlighting for all supported
files, use include
/usr/share/nano/*.nanorc
.
Last updated on 2017-08-28 13:52:53 -0700