Skip to content

Instantly share code, notes, and snippets.

@wesbos
Created April 8, 2016 14:44
Show Gist options
  • Save wesbos/1432b08749e3cd2aea22fcea2628e2ed to your computer and use it in GitHub Desktop.
Save wesbos/1432b08749e3cd2aea22fcea2628e2ed to your computer and use it in GitHub Desktop.

Revisions

  1. wesbos created this gist Apr 8, 2016.
    7 changes: 7 additions & 0 deletions t.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # 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
    }