This commit is contained in:
Lee Burton 2019-04-14 12:22:04 +00:00 committed by GitHub
commit 172d6708d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -27,6 +27,9 @@ URL with:
* osx: `cat something | haste | pbcopy`
* linux: `cat something | haste | xsel`
* windows: check out [WinHaste](https://github.com/ajryan/WinHaste)
* or in PowerShell
``` function haste { param($serviceurl = "http://hastebin.com",$paste); if(!$paste){$paste=@($input)}; $r=Invoke-RestMethod -Method Post -UseBasicParsing -Uri "$serviceurl/documents" -Body ($paste -join "`n");"$($serviceurl)/$($r.key)"}```
followed by `cat something | haste | clip`
After running that, the STDOUT output of `cat something` will show up at a URL
which has been conveniently copied to your clipboard.