UP | HOME

tree command on macOS

One can get tree command on macOS by using

brew install tree
# or
nix-env -i tree

A sample is

tree -P 'lang|*.rkt|*.scrbl' -I 'compiled|doc'

for racket project. It produces

.
├── info.rkt
├── main.rkt
├── scribblings
│   └── collection-name.scrbl
└── tests
    └── test.rkt

Date: 2021-12-12 Sun 00:00

Author: Lîm Tsú-thuàn