update icons section

NRK 2024-02-17 00:02:27 +00:00
parent 142e372988
commit 119b26a479

@ -1,6 +1,6 @@
## File icons
`nnn` supports multiple ways to show icons. They are turned off by default and are not provided in the default distribution to avoid shipping third party resources. We support three different icon sets:
`nnn` supports multiple ways to show icons. They are turned off by default and are not provided in the default distribution to avoid shipping third party resources. Currently supported icon sets are:
* Unicode Emojis
* [Nerdfont](https://www.nerdfonts.com/) Icons
@ -8,7 +8,7 @@
Icons can be customized in [icons.h](https://github.com/jarun/nnn/blob/master/src/icons.h).
You will need to recompile `nnn` rather than use the default release. Or you can grab one of the icon-enabled static binaries auto-generated at each release.
You will need to recompile `nnn` rather than use the default release. Or you can grab one of the icon-enabled static binaries auto-generated at each release. Arch Linux users can check out the AUR packages [nnn-icons](https://aur.archlinux.org/packages/nnn-icons/) and [nnn-nerd](https://aur.archlinux.org/packages/nnn-nerd/).
Note that your `$TERM` must support 256 colors for the icons to show. The 8-color option `-C` also disables icons.
@ -31,10 +31,6 @@ Note that your `$TERM` must support 256 colors for the icons to show. The 8-colo
- Clone the `nnn` repo
- Compile `nnn` with `make O_ICONS=1`
Note:
- Arch Linux users can check out the AUR packages [nnn-icons](https://aur.archlinux.org/packages/nnn-icons/) and [nnn-nerd](https://aur.archlinux.org/packages/nnn-nerd/).
### Move the newly compiled nnn to where your programs normally go
Once compiled, you'll notice an `nnn` executable is now in your root. Copy this file to wherever such programs are normally stored. A good way to check is to do a `which nnn` on where the packaged release was installed. Simply replacing that file should be enough.