Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

crodjer/paster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Paster

A generic pastebin posting tool

Supported Paste services:

Add support for more services easily

Usage

Do pstr -h, pstr paste -h, pstr list -h for help

Examples

Paste some content

pstr paste "some content"

Paste through the familiar piping

git diff | pstr paste

Paste to the service pastebin

pstr paste -s pastebin "some content"

Paste file contents (deprecated after piping support)

pstr paste -f path/to/file/filename.extension

Paste git diff (deprecated after piping support)

pstr paste -c "git diff"

List available syntax/languages/formats

pstr list syntax

List available pastebin services

pstr list services

For the lazy

  • Alias pstr paste to something like p and do echo foo | p
  • Use a config file to store settings: ./paster.cfg, /etc/paster.cfg or ~/.pastercfg