Skip to content

Instantly share code, notes, and snippets.

@breeno
Created February 6, 2011 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breeno/813609 to your computer and use it in GitHub Desktop.
Save breeno/813609 to your computer and use it in GitHub Desktop.
Ruby Command line script for opening Xcode for the project in the current directory
#!/usr/bin/env ruby
Dir.foreach(Dir.pwd) do |f|
if f.include? '.xcodeproj' then
exec "open -a /Developer/Applications/Xcode.app #{f}"
end
end
puts 'No Xcode project found here.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment