Skip to content

Instantly share code, notes, and snippets.

@qnoid
Created January 30, 2013 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qnoid/4674581 to your computer and use it in GitHub Desktop.
Save qnoid/4674581 to your computer and use it in GitHub Desktop.
Adds the ability to do a "pod clean" that will remove the Podfile.lock, the ./Pods and xcworkspace under a project.
#pod clean
pod() {
if [ $1 == "clean" ]
then
xcworkspace=$(find . -maxdepth 1 -name *.xcworkspace)
if [ -z $xcworkspace ]
then
echo "Already clean"
else
echo "Will remove Podfile.lock, Pods/ and $xcworkspace"
command rm -rf Podfile.lock Pods *.xcworkspace
fi
else
command pod $@;
fi
}
@qnoid
Copy link
Author

qnoid commented Jan 30, 2013

Simply add it in your ~/.bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment