From e71a0e0414d83b9619c3b199f96a508c654be262 Mon Sep 17 00:00:00 2001 From: serxoz Date: Fri, 2 Sep 2022 08:49:41 +0200 Subject: [PATCH] transfer en fish --- fish/functions/transfer.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 fish/functions/transfer.fish diff --git a/fish/functions/transfer.fish b/fish/functions/transfer.fish new file mode 100644 index 0000000..052179c --- /dev/null +++ b/fish/functions/transfer.fish @@ -0,0 +1,7 @@ +function transfer --description 'Sube un arquivo a transfer.tr4ck.net' + if [ $argv[1] ] + wget -t 1 -qO - --method=PUT --body-file="$argv[1]" --header="Content-Type: (file -b --mime-type $argv[1])" https://transfer.tr4ck.net/(basename $argv[1]) + else + echo 'uso: transfer ARQUIVO_A_TRANSFERIR' + end +end