1
0
Fork
You've already forked piip
0
Track when you've worked and the amount of time worked
  • Shell 100%
Find a file
2020年01月29日 08:40:14 +01:00
LICENSE Initial commit 2018年08月31日 10:03:03 +02:00
piip less contrived way of getting last line 2020年01月29日 08:40:14 +01:00
README.md Portability improvements 2019年02月19日 13:37:19 +01:00

piip

Small bash script for tracking which and how many hours you've worked.

Installation

Create ~/.piip/ or change the DB variable to whatever you want. That's pretty much it. A good idea is to add the script to $PATH.

This script makes use of Bash >=4 features.

The GNU date and BSD date are not compatable, set the $DATEBIN variable to you GNU date if your default date is BSD. If you are on OS X for example, install coreutils with brew and set $DATEBIN to gdate.

Usage

piip in Start tracking time
piip out Stop tracking time
piip count Print how many hours you've worked each day
piip edit Edit the plaintext database with your $EDITOR
piip check_health Check the health of the database (is run automatically with "count")

Disclaimer

I made this to track my own hours, look through the code to see if it'll work for you. Tracking time between days will probably not work. Not sure what will happen and can't be bothered to check :)