Rust app that displays a new quote every time you open a terminal
cargo build --release
- Move
random-quotes
binary to a location on your path (e.g. $HOME/bin/random-quotes) - Create a
quotes.csv
file formatted withquote goes here,author of quote
on each line - Place the
quotes.csv
file next to therandom-quotes
binary, or use a full path (see Usage below) - Add the binary call to the bottom of ~/.zshrc or ~/.bashrc (e.g. $HOME/bin/random-quotes) and save
- Reload your terminal, and voilà, you have a random quote whenever you open the terminal!
You can run the program in two ways:
-
Without arguments: It will look for
quotes.csv
in the same directory as the executablerandom-quotes
-
With a full path to the quotes file:
random-quotes /Users/kevin/.kevin/code/random-quotes/quotes.csv
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