Blogging about shell

Mar 12, 2009

Extend your shell toolbox with pbcopy

We are developing Rails applications on Mac OSX and a command which isn’t used enough in my opinion is “pbcopy”. This command will allow you to grab the standard input from a terminal and put it on the clipboard. I find myself using commands such as pwd | pbcopy all the time. This will grab my current working directory and make it available in my clipboard allowing me to easily paste it into another terminal or application. This avoids the need for you to grab your mouse to paste a simple li...