aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/sprunge.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-04 17:17:26 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-04 17:17:26 +1200
commit7a6b6006187d58d5b9b889e541f7ea1df7b86af0 (patch)
tree70bea4f9e173aa261bd8113b9073baf9f940a8c7 /bash/bashrc.d/sprunge.bash
parentRestore stderr redirection for command -v (diff)
downloaddotfiles-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.bash6
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}";
+}
+