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

                                         
                                                               
 
# #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}"
}