mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 04:30:19 +01:00
Add "Windows support" to README
Added a section that explains how to get the `transfer` alias on Windows.
This commit is contained in:
parent
6a6cce7c28
commit
9a6089289d
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -34,6 +34,19 @@ alias transfer=transfer
|
|||
$ transfer test.txt
|
||||
```
|
||||
|
||||
### On Windows
|
||||
|
||||
Download [curl](https://curl.haxx.se/download.html). Then, put a file called transfer.cmd somewhere in your PATH with this inside it:
|
||||
```
|
||||
@echo off
|
||||
setlocal
|
||||
:: write to output to tmpfile because of progress bar
|
||||
set tmpfile=%TEMP%\~%~nx1.transfer
|
||||
curl --progress-bar --upload-file %1 https://transfer.sh/%~nx1 >> %tmpfile%
|
||||
type %tmpfile%
|
||||
del %tmpfile%
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Parameter | Description | Value | Env
|
||||
|
|
Loading…
Reference in a new issue