Last active
August 7, 2023 20:57
Revisions
-
jpwilliams revised this gist
Aug 15, 2017 . 2 changed files with 3 additions and 3 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ Uses `tree` along with a `.gitignore` file to filter results. Defaults to ignoring `node_modules` if no `.gitignore` can be found in the current directory or in the git repo's root directory. Would be cooler if we knew exacty where `.gitignore` files made a difference. Even nicer if the output showed the status of files in Git (modified, unchanged, new, deleted etc). Package? 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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ tree -C -I $((cat .gitignore 2> /dev/null || cat $(git rev-parse --show-toplevel 2> /dev/null)/.gitignore 2> /dev/null || echo "node_modules") | egrep -v "^#.*$|^[[:space:]]*$" | tr "\\n" "|" | rev | cut -c 2- | rev) -
jpwilliams revised this gist
Aug 14, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ Uses `tree` along with a `.gitignore` file to filter results. Defaults to ignoring `node_modules` if no `.gitignore` can be found in the current directory. Would be nice if it used all relevant `.gitignore` files rather than just the one in the current directory. Even nicer if the output showed the status of files in Git (modified, unchanged, new, deleted etc). Package? -
jpwilliams revised this gist
Aug 14, 2017 . No changes.There are no files selected for viewing
-
jpwilliams revised this gist
Aug 14, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ Uses `tree` along with a `.gitignore` file to filter results. Defaults to ignoring `node_modules` if no `.gitignore` can be found in the current directory. Would be nice if it used all relevant `.gitignore` files rather than just the one in the current directory. -
jpwilliams revised this gist
Aug 14, 2017 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ Uses `tree` along with a `.gitignore` file to filter results. Defaults to ignoring `node_modules` if no `.gitignore` can be found in the current directory. -
jpwilliams created this gist
Aug 14, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ tree -C -I $((cat .gitignore 2> /dev/null || echo "node_modules") | egrep -v "^#.*$|^[[:space:]]*$" | tr "\\n" "|" | rev | cut -c 2- | rev)