Created
February 28, 2016 19:07
-
-
Save kavichu/059abdbac971bc1a6d3c to your computer and use it in GitHub Desktop.
Add to cat npm_workspace_clean.sh >> ~/.bashrc.
This file contains 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
function ds_tree { | |
for dir in $(find . -maxdepth 1 -type d ) | |
do | |
du -sh $dir; | |
done | |
} | |
function npm_workspace_clean_recursive { | |
find . -maxdepth 2 -name "node_modules" -exec rm -rf {} \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment