aboutsummaryrefslogtreecommitdiff
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
parentRestore stderr redirection for command -v (diff)
downloaddotfiles-7a6b6006187d58d5b9b889e541f7ea1df7b86af0.tar.gz
dotfiles-7a6b6006187d58d5b9b889e541f7ea1df7b86af0.zip
Add sprunge script for my convenience
-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}";
+}
+