~goorzhel/mood

Simple mood-tracker in Bash.

8bf9350 0.2.1

~goorzhel pushed to ~goorzhel/mood git

1 year, 4 months ago
~goorzhel/mood

New git repository added

1 year, 4 months ago

#mood

mood is a mood-tracker. Whenever you log an entry, you'll be asked how you're feeling and what you're up to, and be given a space to input notes.

The entries are stored as text files in ~/.config/mood, or whatever the env var $MOOD_DIR is set to.

#Installation

Copy mood to ~/bin/ or anywhere else in your $PATH.

#Usage

As with most Unix-esque programs, -h and -v print help and version, respectively.

Run mood with 0–1 arguments to log an entry:

$ mood 'pretty good, actually'
1) programming
2) gaming
3) on-call at work
4) playing music
5) date night
6) working out
[0-9] to select existing; type to add new; ^D to proceed: 1
[0-9] to select existing; type to add new; ^D to proceed: 2
[0-9] to select existing; type to add new; ^D to proceed: reading
Add 'reading' as new activity? [y/N]: y
1) programming
2) gaming
3) on-call at work
4) playing music
5) date night
6) working out
7) reading
You can now select 'reading' above. [0-9]: 7
[0-9] to select existing; type to add new; ^D to proceed: 4
[0-9] to select existing; type to add new; ^D to proceed: <I press ^D>
Notes (Enter and ^D to finish):
Added a README to `mood` today. It is really freaking hot in San Francisco.
Made sure I was getting my two liters today.
$

To log your entry elsewhere (which I do while developing), set MOOD_DIR in the environment:

$ MOOD_DIR=/tmp/mood_devel mood

#Development

I take patches with utmost gratitude, but I also request that they be put through shellcheck first.