Created
September 25, 2014 01:32
-
-
Save onmyway133/dd3bf839f07a1f0703db to your computer and use it in GitHub Desktop.
xopen
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
// http://paul-samuels.com/blog/2012/10/13/simple-developer-happiness-gains/ | |
#!/usr/bin/env ruby | |
require 'shellwords' | |
proj = Dir['*.xcworkspace'].first | |
proj = Dir['*.xcodeproj'].first unless proj | |
if proj | |
puts "Opening #{proj}" | |
`open #{proj}` | |
else | |
puts "No xcworkspace|xcproj file found" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment