Compare commits

..

2 Commits

Author SHA1 Message Date
2114436013
Update exex 2023-03-25 16:19:19 -05:00
a977479695
Add exex fn (exa explorer) 2023-03-25 16:00:24 -05:00

28
zshrc
View File

@ -119,6 +119,34 @@ if (( $+commands[zellij] )); then
} }
fi fi
# exa
if (( $+commands[exa] )); then
# exa explorer
exex() {
local depth=1
local exa_opts=("--color=always" "--git" "--icons" "-F" "-T")
while true; do
clear
exa $exa_opts -L$depth $@
read -sk key
case $key in
h)
(( depth-- ))
[[ $depth -lt 1 ]] && local depth=1
;;
l)
(( depth++ ))
;;
q)
break
;;
esac
done
}
fi
# git # git
if (( $+commands[git] )); then if (( $+commands[git] )); then
git_chpwd_hook() { git_chpwd_hook() {