Skip to content

Instantly share code, notes, and snippets.

@no6v
Created June 13, 2011 23:56
Show Gist options
  • Save no6v/1024047 to your computer and use it in GitHub Desktop.
Save no6v/1024047 to your computer and use it in GitHub Desktop.
diff --git a/lib/earthquake/commands.rb b/lib/earthquake/commands.rb
index 80d1841..d9dfd9b 100644
--- a/lib/earthquake/commands.rb
+++ b/lib/earthquake/commands.rb
@@ -79,6 +79,12 @@ Earthquake.init do
puts_items twitter.user_timeline(:screen_name => m[1])
end
+ # :recent jugyo $gg
+ # good shortcut to trace back through ones history
+ command %r|^:recent\s+([^\/\s]+)\s+(\d+)$|, :as => :recent do |m|
+ puts_items twitter.user_timeline(:screen_name => m[1], :max_id => m[2]).reverse
+ end
+
# :recent yugui/ruby-committers
command %r|^:recent\s+([^\s]+)\/([^\s]+)$|, :as => :recent do |m|
puts_items twitter.list_statuses(m[1], m[2])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment