dotfiles/.local/bin/scripts/tl

4 lines
121 B
Plaintext
Raw Normal View History

#!/bin/sh
case "$1" in [0-9]) depth=$1; shift;; esac
2021-06-18 15:54:39 +00:00
tree -a --dirsfirst -L ${depth:-3} --du -h -C "$@" | ${PAGER:-less}