Last active
August 29, 2015 14:08
-
-
Save stevethomp/1e8d4f60ceda7ba39a43 to your computer and use it in GitHub Desktop.
Launch your Xcode project quickly, defaulting first to the workspace file for Cocoapods
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
// Save as ~/Documents/.../OpenXcodeProject.sh | |
#!/bin/bash | |
if [ -e *.xcworkspace ]; then | |
open *.xcworkspace | |
echo 'Found a workspace file, opening' | |
elif [ -e *.xcodeproj ]; | |
then open *.xcodeproj | |
echo 'found xcodeproj, opening' | |
else echo 'Found nothing!' | |
fi | |
// add this to your .zshrc | |
alias xcopen="~/Documents/.../OpenXcodeProject.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment