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
.
Currently, hastebin and GitHub gist are supported. By default, Hastebin is used, but you can specify the service using the --service
option.
Bash
pasty upload ./file.txt --open
The command above uploads ./file.txt to Hastebin and uploads the newly created haste in a new browser window.
If you don't want to build from source, head over to the releases page and grab the latest binary build. If there isn't one available for your platform, you'll have to build from source - instructions for that are below.
cargo install
vim
config file to create a custom command to upload the currently open file.
:command Haste :w !pasty upload --open