~arivigo/schain

A simple habit tracker

a8e9abf README.md: adding basic usage info

~arivigo pushed to ~arivigo/schain git

5 days ago

4449b88 date.h: fixed gcc warn about buffer size

~arivigo pushed to ~arivigo/schain git

13 days ago

#schain - A simple habit tracker

schain is a simple habit tracker that lets you keep count of how many days you've been following through an habit.

#Basic usage

schain stores the number of days tracked into a file defined by the user. The user checks in a new succesful day by using the -k option; calling schain without options shows the present amount of days tracked and the date of the last check-in.

$ schain -c 0 demo
2022-06-22: 0 days.
$ schain -k demo
2022-06-23: 1 day.
$ schain demo
2022-06-23: 1 day.

You may check the schain(1) manpage for further usage information.

#Build

schain requires:

  1. A POSIX-like system
  2. A C99 compiler

Build by using:

$ make

Customize the build process by changing config.mk to suit your needs.

#Install

You may install schain by running the following command as root:

# make install

This will install the binary under $PREFIX/bin, as defined by your environment, or /usr/local/bin by default. The Makefile supports the $DESTDIR variable as well.

#Cultural trivia

The idea of a chain of days to work on an habit comes from Epictetus, Discourses 2.18.^1 That's where schain gets its name from!

#Contributing

All contributions are welcome! If you wish to send in patches, ideas, or report a bug, you may do so by sending an email to the schain-devel mailing list.

If interested in getting some news from the project, you may also want to subscribe to the low-volume schain-announce mailing list!

#License

schain is published under an MIT/X11/Expat-type License. See LICENSE file for copyright and license details.