Skip to content

Instantly share code, notes, and snippets.

Avatar

Petrus Kiendys PetrusKiendys

View GitHub Profile
@PetrusKiendys
PetrusKiendys / transfer.fish
Created Sep 26, 2017 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
View transfer.fish
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
You can’t perform that action at this time.