dotfiles/.local/bin/scripts/tl

4 lines
121 B
Text
Raw Normal View History

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