transfer en fish
This commit is contained in:
parent
ab2157b7ac
commit
e71a0e0414
7
fish/functions/transfer.fish
Normal file
7
fish/functions/transfer.fish
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user