Add exex fn (exa explorer)

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

30
zshrc
View File

@ -119,6 +119,36 @@ if (( $+commands[zellij] )); then
}
fi
# exa
if (( $+commands[exa] )); then
# exa explorer
exex() {
local depth=1
clear
exa -FTL$depth $@
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
;;
esac
done
}
fi
# git
if (( $+commands[git] )); then
git_chpwd_hook() {