Rust app that displays a new quote every time you open a terminal
cargo build --release- Move
random-quotesbinary to a location on your path (e.g. $HOME/bin/random-quotes) - Create a
quotes.csvfile formatted withquote goes here,author of quoteon each line - Place the
quotes.csvfile next to therandom-quotesbinary, 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.csvin 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
