Skip to content

Instantly share code, notes, and snippets.

@max-mykhailenko
Forked from wesbos/t.sh
Created April 8, 2016 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save max-mykhailenko/38c327203b2d97a32e53978acb24b61a to your computer and use it in GitHub Desktop.
Save max-mykhailenko/38c327203b2d97a32e53978acb24b61a to your computer and use it in GitHub Desktop.
# Put this in your .zshrc or .bashrc file
# Install `tree` first — brew install tree
function t() {
# Defaults to 3 levels deep, do more with `t 5` or `t 1`
# pass additional args after
tree -I '.git|node_modules|bower_components|.DS_Store' --dirsfirst --filelimit 15 -L ${1:-3} -aC $2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment