Exclusive Skool Content: A Few Ledger Aliases
Hello.
Today, I am going to discuss the details of a few aliases I made for the Ledger command line program on Linux. Since Mint had closed down, I was searching for a new budgeting app, and Ledger fits the bill nicely.
If you're not familiar with Ledger, it is a budgeting app that utilizes a plaintext "budget.dat" file to summarize and display various details about your spending habits. It uses double-entry accounting, which means that each Ledger entry must sum up to 0. If there is a credit on one side of the equation, there must be a debit on the other side. For more information, check out the Ledger documentation here: https://ledger-cli.org/doc/ledger3.html
Once you understand the basics, there are a few aliases you can add to your ~/.zshrc that summarize various items in your budget. Here are mine:
alias lbal='ledger -f <your_budget.dat_file> balance \^assets \^liabilities'
alias lbie='ledger -f <your_budget.dat_file> balance \^income \^expenses'
alias lref='ledger -M register -f <your_budget.dat_file> expenses:food'
Of course, you can set up any alias you like for the last one, including one for assets:checking, income, or even liabilities:credit cards. The world is your oyster!
Hope this was useful to you. Feel free to add your own!
0
0 comments
Daniel Jaouen
1
Exclusive Skool Content: A Few Ledger Aliases
A gathering place for all programmers, novice and expert alike.
powered by
This group has been archived