-
-
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
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
#!/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