Skip to content

Instantly share code, notes, and snippets.


Petrus Kiendys PetrusKiendys

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