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-7.10 platform.
Download (HTTP): https://www.nano-editor.org/dist/v2.6/nano-2.6.3.tar.xz
Download MD5 sum: b82fe6f019f9bc8e069c5c021096e280
Download size: 1.0 MB
Estimated disk space required: 12.5 MB
Estimated build time: less than 0.1 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.6.3 && make
This package does not come with a test suite.
Now, as the
make install && install -v -m644 doc/nanorc.sample /etc && install -v -m644 doc/texinfo/nano.html /usr/share/doc/nano-2.6.3
--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
set autoindent set const set fill 72 set historylog set multibuffer set nohelp set regexp set smooth set suspend
Another example is the
nanorc.sample file in the
/etc directory. It includes color
configurations and has some documentation included in the
Syntax highlighting is provided for several file types, in
/usr/share/nano/ directory. E.g.,
for shell scripts, you can insert
/usr/share/nano/sh.nanorc in the personal or global
configuration file. If you wish highlighting for all supported
Last updated on 2016-08-31 08:17:26 -0500