Merge pull request #1729 from azuline/eza

Add support for eza as a replacement for exa
This commit is contained in:
Arun 2023-09-21 09:39:44 +05:30 committed by GitHub
commit 09bf8fe469
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@
# - Windows Terminal (https://github.com/Microsoft/Terminal | https://aka.ms/terminal) with WSL, or # - Windows Terminal (https://github.com/Microsoft/Terminal | https://aka.ms/terminal) with WSL, or
# - $NNN_TERMINAL set to a terminal (it's xterm by default). # - $NNN_TERMINAL set to a terminal (it's xterm by default).
# - less or $NNN_PAGER # - less or $NNN_PAGER
# - tree or exa or (GNU) ls # - tree or exa/eza or (GNU) ls
# - mediainfo or file # - mediainfo or file
# - mktemp # - mktemp
# - unzip # - unzip
@ -350,6 +350,8 @@ preview_file() {
fifo_pager tree --filelimit "$(find . -maxdepth 1 | wc -l)" -L 3 -C -F --dirsfirst --noreport fifo_pager tree --filelimit "$(find . -maxdepth 1 | wc -l)" -L 3 -C -F --dirsfirst --noreport
elif exists exa; then elif exists exa; then
exa -G --group-directories-first --colour=always exa -G --group-directories-first --colour=always
elif exists eza; then # eza is a community fork of exa (exa is unmaintained)
eza -G --group-directories-first --colour=always
else else
fifo_pager ls -F --group-directories-first --color=always fifo_pager ls -F --group-directories-first --color=always
fi fi