Skip to content

tbullardcollibra/mediations-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

mediations-cli

Displays a random passage from Marcus Aurelius' Meditations every time you open a new terminal session. Works with iTerm2 and Terminal.app on macOS.

Example output showing a gold italic quote with book attribution

Requirements

  • macOS
  • Node.js (any modern version)

Installation

1. Clone the repo

git clone git@github.com:tbullardcollibra/mediations-cli.git ~/Workspace/mediations-cli

2. Add to your shell profile

echo '' >> ~/.zshrc
echo '# Marcus Aurelius Meditations — new terminal greeting' >> ~/.zshrc
echo 'node ~/Workspace/mediations-cli/index.js' >> ~/.zshrc

If you use bash instead of zsh, replace ~/.zshrc with ~/.bash_profile.

3. Reload your shell

source ~/.zshrc

Or simply open a new terminal tab — a passage will greet you.

Usage

Run it manually at any time:

node ~/Workspace/mediations-cli/index.js

Or install globally as a meditations command:

cd ~/Workspace/mediations-cli
npm install -g .
meditations

Passages

Includes 40 hand-selected passages spanning Books II through XII of Meditations. The text is in the public domain.

License

MIT

About

Random Marcus Aurelius passage on every new terminal session. iTerm2 + Terminal.app on macOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors