Created
March 19, 2014 13:58
-
-
Save delebedev/9642175 to your computer and use it in GitHub Desktop.
Opens Xcode workspace or project with AppCode.
This file contains 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
opena(){ | |
if test -n "$(find . -maxdepth 1 -name '*.xcworkspace' -print -quit)" | |
then | |
echo "Opening workspace" | |
open *.xcworkspace -a /Applications/AppCode.app | |
return | |
else | |
if test -n "$(find . -maxdepth 1 -name '*.xcodeproj' -print -quit)" | |
then | |
echo "Opening project" | |
open *.xcodeproj -a /Applications/AppCode.app | |
return | |
else | |
echo "Nothing found" | |
fi | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment