Last active
August 7, 2023 20:57
-
-
Save jpwilliams/dabff82b0ceb95dd57a7552ea7f2d675 to your computer and use it in GitHub Desktop.
Tree using .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tree -C -I $((cat .gitignore 2> /dev/null || echo "node_modules") | egrep -v "^#.*$|^[[:space:]]*$" | tr "\\n" "|" | rev | cut -c 2- | rev) |
Made an alternative version: https://gist.github.com/localhostdotdev/78f6a372a8de4cfed6fe4268bae7f8a3 (You have a lot of code I didn't want to review and < 10 downloads a month)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Made gitree to resolve this issue.