Update eza aliases, exex
This commit is contained in:
parent
c8bc74c84c
commit
a5f2c8c116
@ -1,18 +1,18 @@
|
|||||||
# exa
|
# eza
|
||||||
if (( $+commands[exa] )); then
|
if (( $+commands[eza] )); then
|
||||||
# exa explorer
|
# eza explorer
|
||||||
exex() {
|
exex() {
|
||||||
local depth=1
|
local depth=1
|
||||||
local old_depth=0
|
local old_depth=0
|
||||||
local min_depth=1
|
local min_depth=1
|
||||||
local max_depth=3
|
local max_depth=3
|
||||||
local exa_opts=("--color=always" "--git" "--icons" "-F" "-T")
|
local eza_opts=("--color=always" "--git" "--git-ignore" "--icons" "-F" "-T")
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
if [[ $depth -ne $old_depth ]]; then
|
if [[ $depth -ne $old_depth ]]; then
|
||||||
local old_depth=$depth
|
local old_depth=$depth
|
||||||
clear
|
clear
|
||||||
exa $exa_opts -L$depth
|
eza $eza_opts -L$depth
|
||||||
fi
|
fi
|
||||||
|
|
||||||
read -sk key
|
read -sk key
|
Loading…
x
Reference in New Issue
Block a user