Skip to content

Commit

Permalink
Merge commit '55c333c'
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Johnson committed Feb 25, 2010
2 parents 3654064 + 55c333c commit cc544cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gist.rb
Expand Up @@ -6,7 +6,7 @@
# gist 1234 > something.txt
#
# = INSTALL
# curl http://github.com/evaryont/gist/raw/master/gist.rb > gist &&
# curl http://github.com/dudektria/gist/raw/master/gist.rb > gist &&
# chmod 755 gist &&
# mv gist /usr/local/bin/gist

Expand Down Expand Up @@ -51,7 +51,7 @@ def copy(content)
`open #{content}`
when /linux/
return content unless system("which xclip 2> /dev/null")
IO.popen('xclip', 'r+') { |clip| clip.print content }
IO.popen('xclip -sel clip', 'r+') { |clip| clip.print content }
when /i386-cygwin/
return content if `which putclip`.strip == ''
IO.popen('putclip', 'r+') { |clip| clip.print content }
Expand Down

0 comments on commit cc544cb

Please sign in to comment.