1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-12 23:05:56 +00:00

feat: update light weight alternative

This commit is contained in:
Konstantin Rybakov
2022-01-12 15:29:01 +03:00
parent 32c4523e1c
commit 5a4953dc93

View File

@@ -70,7 +70,7 @@ If you'd like an alternative on Windows that supports functionality similar to `
Han Boetes and @nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem:
``` bash
haste() { a=$(cat); curl -X POST -s -d "$a" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; }
haste() { curl -X POST -s -d "$(cat $1)" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; }
```
Usage:
@@ -78,6 +78,11 @@ Usage:
``` bash
cat file.txt | haste
```
or:
```bash
haste file.txt
```
And a more expansive BASH option by @diethnis can be found at:
https://github.com/diethnis/standalones/blob/master/hastebin.sh