DEV Community

Cover image for Tree++, a tree command with icons
Marcos Oliveira
Marcos Oliveira

Posted on

Tree++, a tree command with icons

I created another command with Modern C++ just to pass the time. It's another tree option, but with icons =)


🌳 Build ans install

git clone https://github.com/terroo/treepp
cmake -B build .
cmake --build build/
sudo cmake --install build/
Enter fullscreen mode Exit fullscreen mode

✍️ Using

Examples

tree++ .
tree++ /path/to/dir
# or
tree++ /path/to/dir/
Enter fullscreen mode Exit fullscreen mode

The slash at the end does not depend on.


πŸŽ„ Default tree

If you want it to be your default tree command, run:

sudo apt remove tree
sudo ln -s /usr/local/bin/tree++ /usr/local/bin/tree
Enter fullscreen mode Exit fullscreen mode

πŸ“ ToDo

  • [ ] - Add colors! =)

Top comments (0)