Skip to content

Instantly share code, notes, and snippets.

@haythamnikolaidis
Created August 26, 2021 09:41
Show Gist options
  • Save haythamnikolaidis/84fa87b3c191c1966b3573cd99cca592 to your computer and use it in GitHub Desktop.
Save haythamnikolaidis/84fa87b3c191c1966b3573cd99cca592 to your computer and use it in GitHub Desktop.
Every now and then, during Xamarin Mobile app development one needs to clean out, bin and obj folders, the packages folder or the local nuget cache. This is a ZSH script to do that.
# Add this to the end of your ~/.zshrc file and run
# source ~/.zshrc
# then you can use 'nukebin' or 'nukebin -pack' in any of your Xamarin/.Net projects.
nukebin(){
find . -iname "bin" -o -iname "obj" | xargs rm -rfv
if [ "$1" = "-pack" ]
then
find . -iname "packages" | xargs rm -rfv
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment