1a49f6443c0230b8e182294546ed9ef2a5110bf2

Author
Matt Parnell <parwok@gmail.com>
Committer
Matt Parnell <parwok@gmail.com>
Date

Message

add sprunge.us pastebin uploader - uses files, or pipes

Diff

This diff is truncated to protect this page.

 1diff --git a/plugins/sprunge/sprunge.plugin.zsh b/plugins/sprunge/sprunge.plugin.zsh
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..9f9432ac8c0cb593e6fe43f3be4ef131f707fbc4
 4--- /dev/null
 5+++ b/plugins/sprunge/sprunge.plugin.zsh
 6@@ -0,0 +1,64 @@
 7+# Contributed and SLIGHTLY modded by Matt Parnell/ilikenwf <parwok -at- gmail>
 8+# Created by the blogger at the URL below...I don't know where to find his/her name
 9+# Original found at http://www.shellperson.net/sprunge-pastebin-script/
10+ 
11+usage() {
12+description | fmt -s >&2
13+}
14+ 
15+description() {
16+cat << HERE
17+ 
18+DESCRIPTION
19+  Upload data and fetch URL from the pastebin http://sprunge.us
20+ 
21+USAGE
22+  $0 filename.txt
23+  $0 text string
24+  $0 < filename.txt
25+  piped_data | $0
26+ 
27+NOTES
28+--------------------------------------------------------------------------
29+* INPUT METHODS *