How to Use: tree

Install

sudo pacman -S tree

Usage

Basic usage is like this:

tree

But that is incomplete, lacking hidden files and colors…

Proper Usage

tree -aCI '.git'

And it looks like this:

.
├── Dockerfile
├── .dockerignore -> .gitignore
├── .editorconfig
├── .gitignore
├── README.md
└── src
    └── main.sh

You won’t see it in this snippet, but -C gives it nice easy to read colors!

Separate multiple ignore patters by | inside the string:

tree -aCI '.git|tmp|vendor'