my take on the 'tree' command line tool for MacOS
- Clone Repository
git clone https://github.com/Greg4268/tree.git
- Set alias in bashrc / zshrc
alias tree="python3 /path/to/script.py"
- (Optional) make alias including arguments
alias rtree="python3 /path/to/script.py --root"
-
Reload terminal with new config
-
run your script!
Description: When included, will exclude dotfiles from tree
--exclude-dotfiles Description: When added with integer following, will set a max depth of subtrees
--max-depth {integer}Description: true = run tree from Users/{username}/ | false = run tree from current working directory
--root