Merge pull request #48 from redg3ar/master

Fix the encoding command to be compatible with ZSH
This commit is contained in:
Nicholas Jitkoff 2019-03-18 09:42:13 -05:00 committed by GitHub
commit 0702e2a0e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,11 +27,11 @@ One simple way to host is to [forward a domain](https://support.google.com/domai
## Generating links programatically
Encoding (Mac)
```echo -n 'hello world' | lzma -9 | base64 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"```
```echo -n 'hello world' | lzma -9 | base64 | xargs -0 printf "https://itty.bitty.site/#/%s\n"```
Encoding (Linux)
```echo -n 'hello world' | lzma -9 | base64 -w0 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"```
```echo -n 'hello world' | lzma -9 | base64 -w0 | xargs -0 printf "https://itty.bitty.site/#/%s\n"```
Encoding (Win Git/WSL)