https://github.com/program247365/random-quotes
Rust app that displays a new quote every time you open a terminal!
https://github.com/program247365/random-quotes
cli fun rust terminal
Last synced: 3 months ago
JSON representation
Rust app that displays a new quote every time you open a terminal!
- Host: GitHub
- URL: https://github.com/program247365/random-quotes
- Owner: program247365
- Created: 2022-08-27T22:57:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-01T03:22:56.000Z (9 months ago)
- Last Synced: 2025-02-05T13:54:15.258Z (5 months ago)
- Topics: cli, fun, rust, terminal
- Language: Rust
- Homepage:
- Size: 9.98 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Random Quotes
> Rust app that displays a new quote every time you open a terminal

## Setup
1. `cargo build --release`
2. Move `random-quotes` binary to a location on your path (e.g. $HOME/bin/random-quotes)
3. Create a `quotes.csv` file formatted with `quote goes here,author of quote` on each line
4. Place the `quotes.csv` file next to the `random-quotes` binary, or use a full path (see Usage below)
5. Add the binary call to the bottom of ~/.zshrc or ~/.bashrc (e.g. $HOME/bin/random-quotes) and save
6. Reload your terminal, and voilà, you have a random quote whenever you open the terminal!## Usage
You can run the program in two ways:
1. Without arguments: It will look for `quotes.csv` in the same directory as the executable
```zsh
random-quotes
```2. With a full path to the quotes file:
```zsh
random-quotes /Users/kevin/.kevin/code/random-quotes/quotes.csv
```## Future Things?
* ~~Fix TODOs in program, once I get better at Rust ;)~~
* ~~Allow specifying the filename via command-line options~~
* Integrate with Google Spreadsheets to fetch quotes