Skip to content

Instantly share code, notes, and snippets.

@burkestar
Forked from andrewsardone/gist:395995
Created November 10, 2010 14:58
Show Gist options
  • Select an option

  • Save burkestar/670951 to your computer and use it in GitHub Desktop.

Select an option

Save burkestar/670951 to your computer and use it in GitHub Desktop.
# 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
}
@burkestar
Copy link
Author

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.

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