@@ -166,7 +166,9 @@ | |||||
<div class="terminal"> | <div class="terminal"> | ||||
<code> | <code> | ||||
<span class="code-title"># Add this to .bashrc or its equivalent</span> | <span class="code-title"># Add this to .bashrc or its equivalent</span> | ||||
<br>transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transferXXX ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } | |||||
<br>transfer() { | |||||
<br># write to output to tmpfile because of progress bar | |||||
<br>tmpfile=$( mktemp -t transferXXX ); curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } | |||||
<br> | <br> | ||||
<br>alias transfer=transfer | <br>alias transfer=transfer | ||||
<br> | <br> | ||||
@@ -168,7 +168,9 @@ | |||||
<div class="terminal"> | <div class="terminal"> | ||||
<code> | <code> | ||||
<span class="code-title"># Add this to .bashrc or its equivalent</span> | <span class="code-title"># Add this to .bashrc or its equivalent</span> | ||||
<br/>transfer() { # write to output to tmpfile because of progress bar tmpfile=$( mktemp -t transferXXX ) curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } | |||||
<br/>transfer() { | |||||
<br># write to output to tmpfile because of progress bar | |||||
<br>tmpfile=$( mktemp -t transferXXX ); curl --progress-bar --upload-file $1 https://transfer.sh/$(basename $1) >> $tmpfile; cat $tmpfile; rm -f $tmpfile; } | |||||
<br/> | <br/> | ||||
<br/>alias transfer=transfer | <br/>alias transfer=transfer | ||||
<br/> | <br/> | ||||