Update exex
This commit is contained in:
parent
a977479695
commit
2114436013
12
zshrc
12
zshrc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user