Browse Source

Merge af9d09bb00 into 6d68ad982f

pull/46/merge
SimplyY 7 years ago
committed by GitHub
parent
commit
aca7769938
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      README.md

+ 18
- 0
README.md View File

@@ -31,6 +31,22 @@ transfer() {

alias transfer=transfer
===

Add alias for fish shell, add function file to ~/.config/fish/functions/transfer.fish
===
function transfer --description 'Upload a file to transfer.sh'
if [ $argv[1] ]
# write to output to tmpfile because of progress bar
set -l tmpfile ( mktemp -t transferXXX )
curl --progress-bar --upload-file $argv[1] https://transfer.sh/(basename $argv[1]) >> $tmpfile
cat $tmpfile
command rm -f $tmpfile
else
echo 'usage: transfer FILE_TO_TRANSFER'
end
end
===

$ transfer test.txt
```

@@ -47,6 +63,8 @@ go get github.com/goamz/goamz/s3
go get github.com/goamz/goamz/aws
go get github.com/golang/gddo/httputil/header
go get github.com/kennygrant/sanitize
go get github.com/dutchcoders/go-virustotal
go get github.com/russross/blackfriday

grunt serve
grunt build


Loading…
Cancel
Save