Skip to content

Instantly share code, notes, and snippets.

@awendt
Created July 11, 2011 11:53
Show Gist options
  • Save awendt/1075713 to your computer and use it in GitHub Desktop.
Save awendt/1075713 to your computer and use it in GitHub Desktop.
Open the GitHub repository for the current working dir (assuming their names match)
#!/usr/bin/env ruby
url = "https://github.com/#{%x(git config github.user).chomp}/#{File.basename(Dir.pwd)}"
exec "/usr/bin/open #{url}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment