aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc.d/sprunge.bash
blob: 30ea719cf9fbfd034370bc6cf52eb9790ee78561 (plain) (tree)
1
2
3
4
5
6


                                                                              
                                                               

 
# #bash on Freenode use their own pastebin, this is a convenience function for
# posting code to it. <http://sprunge.us>
sprunge() {
    curl -F 'sprunge=<-' http://sprunge.us < "${1:-/dev/stdin}"
}