Skip to content

Commit

Permalink
Merge pull request #1729 from azuline/eza
Browse files Browse the repository at this point in the history
Add support for eza as a replacement for exa
  • Loading branch information
jarun authored Sep 21, 2023
2 parents dd07aeb + 3b3ad9c commit 09bf8fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/preview-tui
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# - 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).
# - less or $NNN_PAGER
# - tree or exa or (GNU) ls
# - tree or exa/eza or (GNU) ls
# - mediainfo or file
# - mktemp
# - unzip
Expand Down Expand Up @@ -350,6 +350,8 @@ preview_file() {
fifo_pager tree --filelimit "$(find . -maxdepth 1 | wc -l)" -L 3 -C -F --dirsfirst --noreport
elif exists exa; then
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
fifo_pager ls -F --group-directories-first --color=always
fi
Expand Down

1 comment on commit 09bf8fe

@cafkafk
Copy link

@cafkafk cafkafk commented on 09bf8fe Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Please sign in to comment.