Update eza aliases, exex

This commit is contained in:
Daniel Lynn 2024-04-09 23:03:05 -05:00
parent c8bc74c84c
commit a5f2c8c116
Signed by: daniel
GPG Key ID: 28496A140E180A9D

View File

@ -1,18 +1,18 @@
# exa
if (( $+commands[exa] )); then
# exa explorer
# eza
if (( $+commands[eza] )); then
# eza explorer
exex() {
local depth=1
local old_depth=0
local min_depth=1
local max_depth=3
local exa_opts=("--color=always" "--git" "--icons" "-F" "-T")
local eza_opts=("--color=always" "--git" "--git-ignore" "--icons" "-F" "-T")
while true; do
if [[ $depth -ne $old_depth ]]; then
local old_depth=$depth
clear
exa $exa_opts -L$depth
eza $eza_opts -L$depth
fi
read -sk key