shakespeare-quote
This is the project page for
shakespeare-quote
.
To view the repository on GitHub,
click here
.
Overview
Inspired by the Unix commandline executable
fortune
,
shakespeare-quote
is a lightweight program to print
a randomly selected quote from one of Shakespeare's works when invoked.
The user can specify which specific work to select a quote from,
or a pre-defined group of works, such as only tragedies or histories.
All sonnets are included as well, and may be selected in place of
a quotation.
I originally wrote this program because I thought it would be
a nice improvement to my terminal if I saw a quip from the bard
every time I opened it up.
Maybe you will too. Give it a try!
Usage
To install, download it from the
GitHub repository
and run
make install
.
To uninstall, run
make uninstall
.
To print a random quote,
just run
shakespeare-quote
in the terminal.
Additionally, you can provide options to the programto influence
the output or give additional information about the runtime.
Available options:
shakespeare-quote [-g | --group] filename
:
Specify a particular group of works to pick a quote from.
shakespeare-quote [-w | --work] filename
:
Specify a particular work to pick a quote from.
(overrides --group
if both are provided)
shakespeare-quote [-d | --debug]
:
Run the program in debug mode.
shakespeare-quote [-v | --version]
:
Print the version of the program prior to printing a quote.
The following are the available groups to use with the
--group
flag:
- all : Pick from all works.
- comedy : Pick from all comedies.
- english-history : Pick from the English history plays,
specifically.
- history : Pick from all histories.
- play : Pick from all plays, and exclude sonnets and poems.
- problem-play : Pick from one of the three problem plays --
All's Well That Ends Well, Measure for Measure, and
Troilus and Cressida.
- roman-history : Pick from one of the three Roman history plays --
Antony and Cleopatra, Coriolanus, and Julius Caesar.
- romance : Pick from all romances.
- sonnet : Pick a random sonnet.
- tragedy : Pick from all tragedies.