From e111974432ba3cfddead1f73939a46a9f1fd0f0d Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Thu, 15 Dec 2022 11:24:21 +0100 Subject: [PATCH] feat(zsh): add a function to delete all node_modules folder --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index 58ad43e..d21e626 100644 --- a/zshrc +++ b/zshrc @@ -98,6 +98,11 @@ function update () { sudo softwareupdate -i -a } +# Delete all node_modules folders in a folder and subfolders +function deleteNodeModules () { + find . -name "node_modules" -type d -exec rm -rf '{}' + +} + function homebrewBackup () { cd ~/.dotfiles/ brew bundle dump --describe -f