my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.1 KiB

3 years ago
  1. # Sprunge plugin
  2. This plugin uploads data and fetch URL from the pastebin http://sprunge.us
  3. To enable it, add 'sprunge' to your plugins:
  4. ```zsh
  5. plugins=(... sprunge)
  6. ```
  7. ## Usage
  8. | Command | Description |
  9. |------------------------------|-------------------------------------------|
  10. | `sprunge filename.txt` | Uploads filename.txt |
  11. | `sprunge "this is a string"` | Uploads plain text |
  12. | `sprunge < filename.txt` | Redirects filename.txt content to sprunge |
  13. | `echo data \| sprunge` | Any piped data will be uploaded |
  14. Once sprunge has processed the input it will give you a unique HTTP address:
  15. ```
  16. $ sprunge "hello"
  17. http://sprunge.us/XxjnKz
  18. ```
  19. ## Notes
  20. - Sprunge accepts piped data, stdin redirection, text strings as input or filenames.
  21. Only one of these can be used at a time.
  22. - Argument precedence goes as follows: stdin > piped input > text strings.
  23. - If a filename is misspelled or doesn't have the necessary path description, it will NOT
  24. generate an error, but instead treat it as a text string.