Skip to content

Instantly share code, notes, and snippets.

@quthongle
Forked from wesbos/t.sh
Created April 8, 2016 15:20
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 quthongle/6e098429079e12860e2db188faf68882 to your computer and use it in GitHub Desktop.
Save quthongle/6e098429079e12860e2db188faf68882 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