diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-04 17:17:26 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-04 17:17:26 +1200 |
commit | 7a6b6006187d58d5b9b889e541f7ea1df7b86af0 (patch) | |
tree | 70bea4f9e173aa261bd8113b9073baf9f940a8c7 /bash/bashrc.d/sprunge.bash | |
parent | Restore stderr redirection for command -v (diff) | |
download | dotfiles-7a6b6006187d58d5b9b889e541f7ea1df7b86af0.tar.gz dotfiles-7a6b6006187d58d5b9b889e541f7ea1df7b86af0.zip |
Add sprunge script for my convenience
Diffstat (limited to 'bash/bashrc.d/sprunge.bash')
-rw-r--r-- | bash/bashrc.d/sprunge.bash | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc.d/sprunge.bash b/bash/bashrc.d/sprunge.bash new file mode 100644 index 00000000..d85cf84e --- /dev/null +++ b/bash/bashrc.d/sprunge.bash @@ -0,0 +1,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}"; +} + |