From 0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 16 Mar 2020 23:33:42 +0100 Subject: Well I'm using Arch again --- .oh-my-zsh/plugins/sprunge/sprunge.plugin.zsh | 62 --------------------------- 1 file changed, 62 deletions(-) delete mode 100644 .oh-my-zsh/plugins/sprunge/sprunge.plugin.zsh (limited to '.oh-my-zsh/plugins/sprunge') diff --git a/.oh-my-zsh/plugins/sprunge/sprunge.plugin.zsh b/.oh-my-zsh/plugins/sprunge/sprunge.plugin.zsh deleted file mode 100644 index e1c89b7..0000000 --- a/.oh-my-zsh/plugins/sprunge/sprunge.plugin.zsh +++ /dev/null @@ -1,62 +0,0 @@ -# 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 https://www.shellperson.net/sprunge-pastebin-script/ - -usage() { -description | fmt -s >&2 -} - -description() { -cat << HERE - -DESCRIPTION - Upload data and fetch URL from the pastebin http://sprunge.us - -USAGE - $0 filename.txt - $0 text string - $0 < filename.txt - piped_data | $0 - -NOTES --------------------------------------------------------------------------- -* INPUT METHODS * -$0 can accept piped data, STDIN redirection [&2 - if [ "$*" ]; then - echo Arguments present... >&2 - if [ -f "$*" ]; then - echo Uploading the contents of "$*"... >&2 - cat "$*" - else - echo Uploading the text: \""$*"\"... >&2 - echo "$*" - fi | curl -F 'sprunge=<-' http://sprunge.us - else - echo No arguments found, printing USAGE and exiting. >&2 - usage - fi - else - echo Using input from a pipe or STDIN redirection... >&2 - curl -F 'sprunge=<-' http://sprunge.us - fi -} -- cgit v1.2.3