My personal accounting routine (PTA using ledger/hledger)
UPDATE 2026-07-04: Swapped cone for NanoLedger
I have been sticking to and developing this routine for the past year, and I think I like it. I want to share this because I think everyone should at least try it.
My ledger file is synced using git. I used both Termux and [NanoLedger](https://f-droid.org/en/packages/be.chvp.nanoledger/) to operate on the file on my phone. Honestly, I had the idea of making an app so I wouldn't need Termux anymore. It turns out that using both is just enough and perfect for my use case (git is already there in Termux, and I can do just about anything).
Every time I make a transaction, I immediately record it in my ledger file using NanoLedger (NanoLedger opens my ledger file in Termux data files). And then I tap a Termux shortcut widget on my home screen to run a script called `push_trx`, which creates a commit and pushes it.
All Termux-related ledger interactions are mapped in the shortcuts widget. For example, I have shortcuts to check for balance (i.e., running `hledger balance`), add a new transaction from a template, show what I spent today, undo the last transaction, pull from the repo, and more.
Whenever I feel like it, I manually reconcile my ledger file on my laptop. I pushed, then I pulled from my phone.
That's how it all went. And I am proud of it.
```
Transactions span : 2022-06-11 to 2023-10-01 (477 days)
Last transaction : 2023-09-30 (1 days ago)
Transactions : 3343 (7.0 per day)
Transactions last 30 days: 211 (7.0 per day)
Transactions last 7 days : 63 (9.0 per day)
Payees/descriptions : 1181
Accounts : 134 (depth 5)
Commodities : 10 (***)
Market prices : 96 (***)
Run time (throughput) : 0.30s (11089 txns/s)
```
If you are curious or want to hear more stories or just want to look at the scripts, feel free to contact me and I will share everything. Can't share the scripts yet because it's in the same repository as my ledger files ;)
Created: 2023-10-01 04:38:03, Updated: 2026-07-04 07:19:29, ID: f305c839-fb75-4423-8ed7-2aee95a23e17