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

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joek13 committed Jun 10, 2017
1 parent d8658cf commit d4f7833
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
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 "%"
```

0 comments on commit d4f7833

Please sign in to comment.