From 57298b7fcc09a46a1744378a341ca48e8eaaea03 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Fri, 4 Oct 2019 18:45:21 +0530 Subject: [PATCH] Use ix.io paste service --- plugins/README.md | 2 +- plugins/pastebin | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/plugins/README.md b/plugins/README.md index 3cf0c701..7761f579 100644 --- a/plugins/README.md +++ b/plugins/README.md @@ -28,7 +28,7 @@ The currently available plugins are listed below. | nwal | sh | nitrogen | Set image as wallpaper using nitrogen | | oldbigfile | sh | find, sort | List large files by access time | | organize | sh | file | Auto-organize files in directories by file type | -| pastebin | sh | [pastebinit](https://launchpad.net/pastebinit) | Paste contents of (text) file to paste.ubuntu.com | +| pastebin | sh | - | Paste contents of a text a file ix.io | | pdfview | sh | pdftotext/
mupdf-tools | View PDF file in `$PAGER` | | picker | sh | nnn | Pick files and list one per line (to pipe) | | pywal | sh | pywal | Set image as wallpaper, change terminal colorscheme | diff --git a/plugins/pastebin b/plugins/pastebin index de130e45..13fb3e73 100755 --- a/plugins/pastebin +++ b/plugins/pastebin @@ -1,13 +1,11 @@ #!/usr/bin/env sh -# Description: Paste contents of a text a file to paste.ubuntu.com using pastebinit -# -# pastebinit: https://launchpad.net/pastebinit +# Description: Paste contents of a text a file http://ix.io # # Shell: POSIX compliant # Author: Arun Prakash Jana if ! [ -z "$1" ]; then - pastebinit "$1" + curl -F "f:1=@"$1"" ix.io read input fi