Update exex

This commit is contained in:
Daniel Lynn 2023-03-25 16:19:19 -05:00
parent a977479695
commit 2114436013
Signed by: daniel
GPG Key ID: 655C07B9B3DDC88B

12
zshrc
View File

@ -124,22 +124,20 @@ if (( $+commands[exa] )); then
# exa explorer
exex() {
local depth=1
local exa_opts=("--color=always" "--git" "--icons" "-F" "-T")
clear
exa -FTL$depth $@
while true; do
clear
exa $exa_opts -L$depth $@
read -sk key
while read -sk key; do
case $key in
h)
(( depth-- ))
[[ $depth -lt 1 ]] && local depth=1
clear
exa -FTL$depth $@
;;
l)
(( depth++ ))
clear
exa -FTL$depth $@
;;
q)
break