tree on mac os x ft. dart

Long time ago I wrote a small dart script which prints a light nice tree in the console. You can find it on github here:

Simply check it out and then use the following steps to integrate it. After that you can use it for example, the terminal of mac os x, which hasn’t got a native tree command.

1. edit your .profile file in your home directory

Screen Shot 2013-07-04 at 21.51.17

2. add a new line, which contains something like that:

Screen Shot 2013-07-04 at 21.53.09

vi can be a bit tricky. You need to press ‘i’ first to switch to the insert view. Then write the new line, press the ESC-key and write ‘:w’ and press enter. This saves the document. Type ‘:q’ to close the document. Use the location where you checked out the tree.dart script. Maybe you need to add dart to your PATH var, if you haven’t already:

Screen Shot 2013-07-04 at 21.55.49

3. Restart the terminal and run tree in a folder of your choice:

Screen Shot 2013-07-04 at 21.58.52

If you have any questions or feature-request, do let me know on github.

Yannick Signer