##Adding Tree For the sake of simplicity, I chose to use an alias for the tree command rather than creating a new directory and altering my function search path to read that directory. I searched the web for a bit and found a solution that worked perfectly. Simply open up your .zshrc file and add this code:
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'"
now return to the command line and run:
For those who are unaware, the tree function is a useful shell command that displays the file structure of a given directory in a visual manner. For example, if I am in a directory titled my_blog and within that directory have three folders html, css and js, tree would show something like this:
|____mysqlrouter_passwd |____Notifier.app | |____Contents | | |_____CodeSignature | | | |____CodeResources | | |____MacOS | | | |____Notifier | | |____Resources | | | |____en.lproj | | | | |____MainMenu.nib | | | | |____InfoPlist.strings | | | | |____Credits.rtf | | | |____AppIcon.icns | | | |____Assets.car | | |____Info.plist | | |____PkgInfo