A generic pastebin posting tool
Supported Paste services:
-
Dpaste (http://dpaste.com/) A django base simple and popular pastebin
-
Pastebin (http://pastebin.com/) The very famous pastebin. Complete version 3 api supported
Add support for more services easily
Do pstr -h
, pstr paste -h
, pstr list -h
for help
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
- Alias
pstr paste
to something likep
and doecho foo | p
- Use a config file to store settings:
./paster.cfg
,/etc/paster.cfg
or~/.pastercfg