Skip to content

nfelger/habit-command

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

habit-command is a command-line app to help you keep track of habits you're trying to build.

Since this project is about changing human behaviour, it is of utmost importance to include some hand-waving comments about "the brain" and "hunams." So here goes:

Neuroscientists agree[1] that the brain is pretty good[2] at detecting bullshit[3]. So when you tell yourself: "I'm going to work out for half an hour every day from now on!", your brain, being the independent, strong-willed actor that it is, will say "cool, sounds ace!" Until you miss even one single day. Then it'll be like: "Dude, you said you were gonna work out every day! You're clearly fucking with me, so I'll sabotage your efforts."[4] It's constantly looking for evidence to support or refute your claim. So if you set out with an ambition that's easily disproved, you set yourself up for failure.

Instead, if you make a statement like: "I'm going to make exercise a priority and will regularly spend time on it.", and then reinforce this belief by providing direct evidence that it's really true and keep reinforcing that evidence, your brain will support you.[5]

At least that's what I chose to believe this fine Wednesday.

This app is designed (that sounds professional, right?) to help you collect your evidence and do the reinforcing.

[1] There's lots of 'em, so I'm sure you could round up one or two who agrees on this… ^
[2] "pretty good" – see what I did there‽ ^
[3] As defined by pal_sch, Yo Noid et al (2004). ^
[4] Brains can't actually speak, so we haven't exactly found evidence of this yet, but we're pretty sure that's what going on in the brain's head. ^
[5] Not in the financial sense, tho. That's still your parents' job. ^

Acknowledgements

This is in part inspired by joesgoals.com, which I used in 2006 for about a week or two.

Usage

Below is a (hopefully) illustrative session that shows how to interact with habit command.

$ ./hc
Your top activities for the last 7 days:
1. 7pts: work out
2. 3pts: read
3. 1pts: study neuroscience
(? for help, q to quit)

hc> ?
l            -- list activities
t <id>       -- track activity
c <name>     -- create activity
s <id>       -- show details for activity
list-all     -- list all activities (including archived ones)
archive <id> -- archive activity number 'n'
revive <id>  -- un-archive activity number 'n'
q            -- quit
?            -- this help screen

hc> l
(1) study neuroscience
(2) watch game of thrones
(3) work out
(4) read

hc> t 2

hc> c take over the world
Created activity 'take over the world'. Your activities are now:

(1) study neuroscience
(2) watch game of thrones
(3) work out
(4) read
(5) take over the world

hc> s 3
Your 'work out' history for the last 7 days:

   *     *
   *   * *   *
   T F S S M T W

Total points overall: 21pts
Best week:             7pts (this week!)

License

Copyright (c) 2013 Niko Felger

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages