|
|
@@ -153,10 +153,8 @@ |
|
|
|
<h4>Create an alias, and add it to .bashrc for faster use</h4> |
|
|
|
<code>$ transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transfer ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } alias transfer=transfer</code> |
|
|
|
<h4>Now you can just use |
|
|
|
<strong>transfer</strong>command</h4> |
|
|
|
<code>$transfer hello.txt</code> |
|
|
|
|
|
|
|
|
|
|
|
<strong>transfer</strong> command</h4> |
|
|
|
<code>$ transfer hello.txt</code> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|