aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--bash/bashrc.d/sprunge.bash6
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 60f3f23a..2d46eab7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@ bash/bashrc.d/*
!bash/bashrc.d/ls.bash
!bash/bashrc.d/options.bash
!bash/bashrc.d/prompt.bash
+!bash/bashrc.d/sprunge.bash
!bash/bashrc.d/tmux.bash
gnupg/*
!gnupg/*.conf
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}";
+}
+