소스 검색

Add "Windows support" to README

Added a section that explains how to get the `transfer` alias on Windows.
tags/v1.0.0
Egbert Teeselink 6 년 전
committed by GitHub
부모
커밋
9a6089289d
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. +13
    -0
      README.md

+ 13
- 0
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


불러오는 중...
취소
저장