Created
January 30, 2013 16:47
-
-
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.
This file contains hidden or 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
#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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simply add it in your ~/.bash_profile