This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# hastebin-client | ||
A CLI client for hastebin.com written in Rust. | ||
Currently, it only supports uploading of files. You can optionally open newly opened files in a new browser window using `--open`. | ||
|
||
## Building / Installing | ||
1. Make sure you have [https://www.rust-lang.org/en-US/](Rust) installed. | ||
2. Clone the repo. | ||
3. Enter the directory and run `cargo build --release` (the `--release` flag enables compile-time optimizations) | ||
4. Enter the newly created `target/release` folder and copy the `hastebin-client` binary into `/usr/bin` or put it somewhere safe and add it to your PATH. | ||
5. You're done! Optionally, add the following to your `vim` config file to create a custom command to upload the currently open file. | ||
``` | ||
:command Haste !hastebin-client upload --open "%" | ||
``` |