change all references to exa to eza

This commit is contained in:
David Gus Shields 2023-09-11 14:05:28 -05:00 committed by Ethan P
parent ceaac1b917
commit d96fc92165
2 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@ Like [lesspipe](https://github.com/wofr06/lesspipe), `batpipe` is designed to wo
| Files | Program |
| -------------------- | --------------------------- |
| Directories | `exa`, `ls` |
| Directories | `eza`, `ls` |
| `*.tar`, `*.tar.gz` | `tar` |
| `*.zip`, `*.jar` | `unzip` |
| `*.gz` | `gunzip` |

View File

@ -151,23 +151,23 @@ fi
# Viewers:
# -----------------------------------------------------------------------------
BATPIPE_VIEWERS=("exa" "ls" "tar" "unzip" "gunzip" "xz")
BATPIPE_VIEWERS=("eza" "ls" "tar" "unzip" "gunzip" "xz")
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
viewer_exa_supports() {
viewer_eza_supports() {
[[ -d "$2" ]] || return 1
command -v "exa" &> /dev/null || return 1
command -v "eza" &> /dev/null || return 1
return 0
}
viewer_exa_process() {
viewer_eza_process() {
local dir="$(strip_trailing_slashes "$1")"
batpipe_header "Viewing contents of directory: %{PATH}%s" "$dir"
if "$BATPIPE_ENABLE_COLOR"; then
exa -la --color=always "$1" 2>&1
eza -la --color=always "$1" 2>&1
else
exa -la --color=never "$1" 2>&1
eza -la --color=never "$1" 2>&1
fi
return $?
}