yet another ledger add script

This commit is contained in:
Felix Van der Jeugt 2021-09-09 10:19:16 +02:00
parent 5ddd6b0195
commit 9d8be38b92
No known key found for this signature in database
GPG key ID: 58B209295023754D
2 changed files with 31 additions and 0 deletions

1
yashrc
View file

@ -82,6 +82,7 @@ alias agenda="khal list today 7d"
# Ledger
alias haccounts="hledger -I --alias '/.*:Accounts [^:]*:(.*)/=Accounts:\1' bal accounts"
alias ladd='ladd -a /data/documents/ledger/2021/main.journal /data/documents/ledger/*/main.journal'
alias iadd='iadd /data/documents/ledger/2021/main.journal'
alias is='hledger is -b $(date -d "7 months ago" +%Y-%m) -e $(date +%Y-%m) -MTA --tree -2'
alias cf='hledger cf -b $(date -d "7 months ago" +%Y-%m) -e $(date +%Y-%m) -MTA --tree -2'
alias bs='hledger bs not:accounts'