ls : lll accept dash as a default depth.
This commit is contained in:
parent
1ba877a029
commit
0baff72656
|
@ -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[@]}"
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue