Pastebin the way god intended it be
sprunge.us
sprunge.us
paste () {
(pbpaste | curl -s -F "sprunge=<-" http://sprunge.us | xargs echo -n && echo -n "?"$1) | pbcopy;
}
Usage: `paste <lang>` fpaste () {
(cat $1 | curl -s -F "sprunge=<-" http://sprunge.us | xargs echo -n && echo -n "?"$2) | pbcopy;
}
Usage: `fpaste <file> <lang>`Pardon the lack of bash skills.
alias pastebin="curl -F 'sprunge=<-' http://sprunge.us"
cat <file> | pastebin
now that's very usable