Created
May 2, 2014 16:36
-
-
Save jmazzi/22bb47f87a20527d361b to your computer and use it in GitHub Desktop.
This file contains 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 | |
require 'open3' | |
url = `pbpaste`.strip | |
Open3.popen2("pbcopy") do |stdin, stdout, wait_thr| | |
stdin.puts "![](#{url})" | |
end | |
gh pull-request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment