dotfiles/.local/bin/scripts/tl

4 lines
109 B
Plaintext
Raw Normal View History

#!/bin/sh
case "$1" in [0-9]) depth=$1; shift;; esac
tree -a -L ${depth:-3} --du -h -C "$@" | ${PAGER:-less}