From d5ab3fb62cd250a09a8dca8ee375e1e1ef69db05 Mon Sep 17 00:00:00 2001 From: Colin Shea Date: Sun, 27 Nov 2011 03:40:49 -0700 Subject: [PATCH] Restore the sprunge script --- plugins/sprunge/sprunge | 77 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100755 plugins/sprunge/sprunge diff --git a/plugins/sprunge/sprunge b/plugins/sprunge/sprunge new file mode 100755 index 000000000..d033d61c9 --- /dev/null +++ b/plugins/sprunge/sprunge @@ -0,0 +1,77 @@ +#!/bin/zsh + +# Contributed and SLIGHTLY modded by Matt Parnell/ilikenwf +# Created by the blogger at the URL below...I don't know where to find his/her name +# Original found at http://www.shellperson.net/sprunge-pastebin-script/ + +usage() { + cat << HERE + +DESCRIPTION + Upload data and fetch URL from the pastebin http://sprunge.us + +USAGE + $0 filename.txt + $0 < filename.txt + piped_data | $0 + +INPUT METHODS + +$0 can accept piped data, STDIN redirection [