-
-
Save burkestar/670951 to your computer and use it in GitHub Desktop.
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
| # Xcode convenience function | |
| function xcode { | |
| if (( $# == 0 )); then | |
| if [ -f *.xcodeproj ]; then | |
| open *.xcodeproj | |
| else | |
| open -a Xcode.app | |
| fi | |
| fi | |
| open -a Xcode.app $1 | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Open Xcode From the Command Line for people used to TextMate's "mate" command. Adapted from Andrew Sardone's gist to add ability to just fire up xcode if no *.xcodeproj file exists locally.