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.
pasty upload ./file.txt --open
The command above uploads ./file.txt to Hastebin and uploads the newly created haste in a new browser window.
Make sure you have Rust and its package manager Cargo installed, then run
cargo install pasty
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"