t is a shell script for working with ledger's timelog format.
Download and install the script to a bin directory that exists in your $PATH. For example, $HOME/bin:
curl --silent -L -G https://raw.github.com/nuex/t/master/t -o ~/bin/t
chmod +x ~/bin/t
Set the location of your timelog file:
export $TIMELOG=$HOME/.timelog.ldg
The default location is $HOME/.timelog.ldg.
Usage: t <action>
t in- clock into project or last projectt out- clock out of projectt sw,switch- switch projectst bal- show balancet hours- show balance for todayt edit- edit timelog filet cur- show currently open projectt last- show last closed projectt grep- grep timelog for argumentt cat- show timelogt less- show timelog in pagert timelog- show timelog file
Even though this works with ledger 3, the timelog format is only referenced in the ledger v2 documents. Here are a few resources about the timelog format:
- Using timeclock to record billable time
- timelog files - from the hledger project