Skip to content

Instantly share code, notes, and snippets.

View PetrusKiendys's full-sized avatar

Petrus Kiendys PetrusKiendys

  • Malmö, Sweden
View GitHub Profile
PetrusKiendys /
Created September 26, 2017 16:30 — 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