Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
/ pasty Public archive

A CLI client for hastebin.com and similar written in Rust.

License

Notifications You must be signed in to change notification settings

joek13/pasty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pasty - a client for hastebin-like sites

Pasty is a CLI client for hastebin.com and other similar services written in Rust. Currently, it only supports uploading of files. You can optionally open newly opened files in a new browser window using --open.

Supported services

Currently, hastebin and GitHub gist are supported. By default, Hastebin is used, but you can specify the service using the --service option.

Example Usage

pasty upload ./file.txt --open

The command above uploads ./file.txt to Hastebin and uploads the newly created haste in a new browser window.

Installing

Make sure you have Rust and its package manager Cargo installed, then run

cargo install pasty

VIM Integration

Add the following to your .vimrc file to add commands for uploading the current buffer:

:command Haste :w !pasty upload --open 
:command Gist :w !pasty upload --open --service github --name "%:t"

About

A CLI client for hastebin.com and similar written in Rust.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages