Nano: Difference between revisions
Appearance
Create nano page |
Clementine (talk | contribs) m Nano is a TUI |
||
| (One intermediate revision by one other user not shown) | |||
| Line 9: | Line 9: | ||
{{file|/etc/nixos/configuration.nix|nix| | {{file|/etc/nixos/configuration.nix|nix| | ||
<nowiki> | <nowiki> | ||
programs.nano = { | |||
enable = true; | |||
nanorc = '' | |||
set nowrap | |||
set tabstospaces | |||
set tabsize 2 | |||
''; | |||
}; | |||
</nowiki> | </nowiki> | ||
}} | }} | ||
| Line 22: | Line 22: | ||
For a full list of nano module options, see {{nixos:option|programs.nano}}. | For a full list of nano module options, see {{nixos:option|programs.nano}}. | ||
[[Category: | [[Category:TUI Applications]] | ||
[[Category:Text Editor]] | [[Category:Text Editor]] | ||
Latest revision as of 19:22, 8 November 2026
Nano is a simple, lightweight command-line text editor. It is a popular choice for quick edits in the terminal.
On NixOS, nano is installed by default.
Configuration
System-wide nano configurations are defined through the programs.nano.nanorc option. Refer to the nanorc man page for a full list of settings.
❄︎ /etc/nixos/configuration.nix
programs.nano = {
enable = true;
nanorc = ''
set nowrap
set tabstospaces
set tabsize 2
'';
};
For a full list of nano module options, see programs.nano.