diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | bash/bashrc.d/sprunge.bash | 6 |
2 files changed, 7 insertions, 0 deletions
@@ -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}"; +} + |