Displays a random passage from Marcus Aurelius' Meditations every time you open a new terminal session. Works with iTerm2 and Terminal.app on macOS.
- macOS
- Node.js (any modern version)
1. Clone the repo
git clone git@github.com:tbullardcollibra/mediations-cli.git ~/Workspace/mediations-cli2. Add to your shell profile
echo '' >> ~/.zshrc
echo '# Marcus Aurelius Meditations — new terminal greeting' >> ~/.zshrc
echo 'node ~/Workspace/mediations-cli/index.js' >> ~/.zshrcIf you use bash instead of zsh, replace ~/.zshrc with ~/.bash_profile.
3. Reload your shell
source ~/.zshrcOr simply open a new terminal tab — a passage will greet you.
Run it manually at any time:
node ~/Workspace/mediations-cli/index.jsOr install globally as a meditations command:
cd ~/Workspace/mediations-cli
npm install -g .
meditationsIncludes 40 hand-selected passages spanning Books II through XII of Meditations. The text is in the public domain.
MIT
