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
|
# 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user