Tuesday, December 31, 2019

A more beautiful `tree`.

We all know and love the `tree` command.  But what if we could love it just a bit more with more machine agnostic output?  In the spirit of keeping these solutions "quick", let's add the `charset` argument to our tree command and see what happens.

Normal old tree command:

Pretty, but let's step it up just a bit.

Tree with charset:

 

Is it cooler/better?  Up to you but I will say I prefer this output when putting together docs and other bits when you want tree output in markdown.  Better tree, plant a tree, hug a tree!

Copypastable --> $ tree --charset=ascii

FIN