Skip to content

Instantly share code, notes, and snippets.

View PetrusKiendys's full-sized avatar

Petrus Kiendys PetrusKiendys

  • Malmö, Sweden
View GitHub Profile
@PetrusKiendys
PetrusKiendys / transfer.fish
Created September 26, 2017 16:30 — forked from nl5887/transfer.fish
Bash and zsh alias for transfer.sh. Transfers files and directories to transfer.sh.
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