mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 12:40:19 +01:00
fixed typo
This commit is contained in:
parent
819a5040aa
commit
ce0ebab7d1
2 changed files with 4 additions and 2 deletions
|
@ -149,7 +149,8 @@
|
|||
<h3>Make an alias</h3>
|
||||
|
||||
<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>
|
||||
<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; }
|
||||
<br>$ alias transfer=transfer</code>
|
||||
<h4>Now you can just use
|
||||
<strong>transfer</strong> command</h4>
|
||||
<code>$ transfer hello.txt</code>
|
||||
|
|
|
@ -151,7 +151,8 @@
|
|||
<h3>Make an alias</h3>
|
||||
|
||||
<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>
|
||||
<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; }
|
||||
<br/>$ alias transfer=transfer</code>
|
||||
<h4>Now you can just use
|
||||
<strong>transfer</strong> command</h4>
|
||||
<code>$ transfer hello.txt</code>
|
||||
|
|
Loading…
Reference in a new issue