Add exex fn (exa explorer)
This commit is contained in:
parent
baf106d5c9
commit
a977479695
30
zshrc
30
zshrc
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user