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 # exa explorer
exex() { exex() {
local depth=1 local depth=1
local exa_opts=("--color=always" "--git" "--icons" "-F" "-T")
clear while true; do
exa -FTL$depth $@ clear
exa $exa_opts -L$depth $@
read -sk key
while read -sk key; do
case $key in case $key in
h) h)
(( depth-- )) (( depth-- ))
[[ $depth -lt 1 ]] && local depth=1 [[ $depth -lt 1 ]] && local depth=1
clear
exa -FTL$depth $@
;; ;;
l) l)
(( depth++ )) (( depth++ ))
clear
exa -FTL$depth $@
;; ;;
q) q)
break break