Skip to content

Instantly share code, notes, and snippets.

@siyo
Created April 19, 2013 04:32
Show Gist options
  • Save siyo/5418160 to your computer and use it in GitHub Desktop.
Save siyo/5418160 to your computer and use it in GitHub Desktop.
Earthquake.init do
command %r|^:pbcopy\s+(\d+)|, :as => :pbcopy do |m|
status = cache.read("status:#{m[1]}")
text = URI.decode(status["text"].chomp)
`echo "#{text}" | pbcopy`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment