Skip to content

Instantly share code, notes, and snippets.

@hitode909
Created September 24, 2011 08:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitode909/1239124 to your computer and use it in GitHub Desktop.
Save hitode909/1239124 to your computer and use it in GitHub Desktop.
クリップボードを監視して標準出力に表示
#! /usr/bin/env ruby
last = nil
loop {
current = `pbpaste`
if last != current
puts current
last = current
end
sleep 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment