ls : lll accept dash as a default depth.

This commit is contained in:
Dmitry Voronin 2023-11-25 21:35:05 +03:00
parent 1ba877a029
commit 0baff72656

View file

@ -24,6 +24,7 @@ lll()
[[ "${target}" = "" ]] && target="." [[ "${target}" = "" ]] && target="."
[[ "${depth}" = "" ]] && depth=666 [[ "${depth}" = "" ]] && depth=666
[[ "${depth}" = "-" ]] && depth=666
tree -a -L "${depth}" -- "${target[@]}" tree -a -L "${depth}" -- "${target[@]}"
} }