From 6c6e66900e02a8c4e62a6227931d4185d5327154 Mon Sep 17 00:00:00 2001 From: Gabriel Kaam Date: Tue, 7 Mar 2017 19:46:36 +0100 Subject: [PATCH] Adds transfer.sh plugin --- plugins/transfer/README.md | 6 ++++++ plugins/transfer/transfer.plugin.zsh | 30 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 plugins/transfer/README.md create mode 100644 plugins/transfer/transfer.plugin.zsh diff --git a/plugins/transfer/README.md b/plugins/transfer/README.md new file mode 100644 index 00000000..4dc8a5ca --- /dev/null +++ b/plugins/transfer/README.md @@ -0,0 +1,6 @@ +# Transfer.sh + +[Transfer.sh](https://transfer.sh/) plugin - easy file sharing from the command line + +## Usage +Just type `transfer hello.txt` and let the magic happen diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh new file mode 100644 index 00000000..b13e6a16 --- /dev/null +++ b/plugins/transfer/transfer.plugin.zsh @@ -0,0 +1,30 @@ +# From https://transfer.sh/ +# Modified by Gabriel Kaam + +function transfer() { + if [[ $# -eq 0 ]]; then + cat >&2 <