Publish the contents of the clipboard, a file or several, in its entirety or partially, in a pastebin
Go to file
Abreu d506955371 Update 'README.md' 2021-08-06 23:21:31 +00:00
completions Added an instruction to add Argonautica's repository 2019-05-28 19:15:14 -03:00
functions Modified dependency.fish script 2019-05-25 17:44:13 -03:00
hooks Simplified installation script 2019-06-08 18:33:42 -03:00
.gitignore Erase commit history 2019-05-19 23:27:47 -03:00
LICENSE Erase commit history 2019-05-19 23:27:47 -03:00
README.md Update 'README.md' 2021-08-06 23:21:31 +00:00
instructions.fish Simplified the function 2019-05-20 14:34:09 -03:00

README.md

publish

A plugin for Oh My Fish.

GPL License Fish Shell Version Oh My Fish Framework


Description

A wrapper function for pastebinit, allowing it to publish multiple lines at once while also choosing which lines to send. By not specifying a target file, or passing content through a pipe, the contents of the clipboard are uploaded instead. This function is fully compatible with termux as well.

Example usage

asciicast

Options

-l/--lines [0-7,8,9]
For each file, set the line range to be published

-a/--author [author]
Set author name. Default is $USER

-b/--pastebin [url]]
Set pastebin url. Default is distro specific with fallback to pastebin.

-e/--echo
Print content to stdout too

-f/--format [format]
Choose a highlighting format (check pastebin's website for complete list, example: python). Default is "text".

-h/--help
Display these instructions

-i/--filename
Use filename for input

-L/--list
List supported pastebins

-j/--jabberid [id]
Set Jabber ID

-m/--permatag [permatag]
Set permatag

-t/--title [title]
For each file, set a title

-P/--private [0/1]
Make paste(s) private

-u/--username [username]
Set a username

-p/--password [password]
Set a password

-v/--version
Print pastebinit version

Dependencies

If not for termux-api, you'll be prompted to install these dependencies upon installaling publish, if you don't have them already installed. To install termux-api, see its installation instructions

pastebinit feedback contains_opts [xclip/termux-api]

Install

omf repositories add https://gitlab.com/argonautica/argonautica 
omf install publish