thufir@arrakis ~/Desktop $
thufir@arrakis ~/Desktop $ cat pbpaste.rb
#!/bin/sh
# With a little automator workflow, quicksilver magic, and a judicious
# placement of pbpaste on the next line you can paste with almost no
effort at
# all.
url=$(curl http://pastie.caboo.se/pastes/create \
-H "Expect:" \
-F "paste[parser]=plaintext" \
-F "paste[body]=<-" \
-s -L -o /dev/null -w "%{url_effective}")
Dude, don't put yourself through that kind of pain. The next version
of my Utility Belt gem will have a pastie command-line tool. It
already has one for IRB.
thufir@arrakis ~/Desktop $
thufir@arrakis ~/Desktop $ cat pbpaste.rb
#!/bin/sh
# With a little automator workflow, quicksilver magic, and a judicious
# placement of pbpaste on the next line you can paste with almost no
effort at
# all.
url=$(curl http://pastie.caboo.se/pastes/create \
-H "Expect:" \
-F "paste[parser]=plaintext" \
-F "paste[body]=<-" \
-s -L -o /dev/null -w "%{url_effective}")