cheerup v1.1.0
What
Print a mantra in terminal,
Simple phrases to build positive mental habits.

Inspired by:
fortune-mod
momentum
About Name?
It seems Mantras is already a npm package for angular,
so I picked another name called cheerup.
How
Installation:
Install Node and NPM first.
Install the package:
# npm
npm i -g cheerup
# or yarn
yarn add global cheerupUsage:
cheerup
cheerup --dailyAdd to your terminal as a startup
# bash
echo 'cheerup --daily' >> ~/.bashrc && source ~/.bashrc
# zsh
echo 'cheerup --daily' >> ~/.zshrc && source ~/.zshrcContribution
Add More Sentenses:
mantras phrases are listed in sentences/mantras.js,
You can add more lines with PR ;)
Local Development:
Install Node and NPM.
git clone and cd into the folder.
# install depencency
npm install
# simply run from source
node ./cli.js
# -------- global install test
# make it global command
npm link
# run from linked global command
cheerup
# unregister global command
npm uninstall -g cheerup For yarn user:
# link of yarn is bit different
yarn link
yarn unlink cheerupDistribution:
I know only some js,
For more distribution (such as brew, apt).
make a PR if you like to run it from other palces :)
core function code is in cli.js,
runner info declared in package.json.
If mantras list changed, the cli will complete other staff (such as update daily function) before run.
(I'm sorry but I don't know how to improve the ramdom pick algorithm yet, maybe you can improve it :)