浏览代码

fixed issue in alias example

tags/v1.0.0
Remco 9 年前
父节点
当前提交
4a544306ea
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. +3
    -1
      transfersh-server/static/index.html
  2. +3
    -1
      transfersh-web/index.html

+ 3
- 1
transfersh-server/static/index.html 查看文件

@@ -166,7 +166,9 @@
<div class="terminal">
<code>
<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>alias transfer=transfer
<br>


+ 3
- 1
transfersh-web/index.html 查看文件

@@ -168,7 +168,9 @@
<div class="terminal">
<code>
<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/>alias transfer=transfer
<br/>


正在加载...
取消
保存