Skip to content

Instantly share code, notes, and snippets.

@kavichu
Created February 28, 2016 19:07
Show Gist options
  • Save kavichu/059abdbac971bc1a6d3c to your computer and use it in GitHub Desktop.
Save kavichu/059abdbac971bc1a6d3c to your computer and use it in GitHub Desktop.
Add to cat npm_workspace_clean.sh >> ~/.bashrc.
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