Command Line Vocab
Like sudocabulary
but allows for loading custom vocab lists based on environment variables.
Uses "Advanced" GRE words from Magoosh's vocab list, as an example.
Screenshot
Requirements
Installation
With basher
basher install mdzhang/terminal-vocab
Manually:
-
Download the
bin/vocab
executable and move it onto your path e.g.export PATH="~/.local/bin:$PATH" mv vocab ~/.local/bin
-
Ensure shell runs script on startup by adding the following to e.g. your
~/.bashrc
if which vocab > /dev/null; then vocab fi
Custom Vocab Lists
- Make a JSON file where each entry in a top level array has the keys:
word
: the vocab wordmeaning
: the definition of the wordpos
: (optional) aka part of speechexample
: (optional) a sentence using the word in an example
- Add the file under
$VOCAB_HOME/data/<file name>.json
- by default,
VOCAB_HOME
is thedata
directory alongside thevocab
executable; if you used basher to install this, then it would be e.g.~/.basher/cellar/packages/mdzhang/terminal-vocab/data
- you can override this to point to some other directory on your host
- by default,
- Change your environment variable
VOCAB_SET
to match<file name>
- Profit
License
MIT