switch ledger to 2021

This commit is contained in:
Felix Van der Jeugt 2021-01-23 22:42:25 +01:00
parent 3df75b6db7
commit 1c931f9dd0
No known key found for this signature in database
GPG Key ID: 58B209295023754D

6
yashrc
View File

@ -12,8 +12,8 @@ fi
# arrange history # arrange history
HISTFILE=~/.yash_history HISTFILE=~/.yash_history
HISTSIZE=5000 HISTSIZE=10000
HISTRMDUP=5000 HISTRMDUP=10000
# Get ourselves a nice prompt # Get ourselves a nice prompt
ks() { s="$?" ; $* ; return "$s" ; } ks() { s="$?" ; $* ; return "$s" ; }
@ -73,7 +73,7 @@ alias agenda="khal list today 7d"
# Ledger # Ledger
alias haccounts="hledger -I --alias '/.*:Accounts [^:]*:(.*)/=Accounts:\1' bal accounts" alias haccounts="hledger -I --alias '/.*:Accounts [^:]*:(.*)/=Accounts:\1' bal accounts"
alias ladd='ladd -a /data/documents/ledger/2020/main.journal /data/documents/ledger/*/main.journal' alias ladd='ladd -a /data/documents/ledger/2021/main.journal /data/documents/ledger/*/main.journal'
alias is='hledger is -b $(date -d "7 months ago" +%Y-%m) -e $(date +%Y-%m) -MTA --tree -2' 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 cf='hledger cf -b $(date -d "7 months ago" +%Y-%m) -e $(date +%Y-%m) -MTA --tree -2'
alias bs='hledger bs not:accounts' alias bs='hledger bs not:accounts'