add hledger aliases for bs and is

This commit is contained in:
Felix Van der Jeugt 2020-04-15 12:39:42 +02:00
parent 93fc12e204
commit 99d3b8ca89
No known key found for this signature in database
GPG Key ID: 58B209295023754D

2
yashrc
View File

@ -75,6 +75,8 @@ alias agenda="khal list today 7d"
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/2020/main.journal /data/documents/ledger/*/main.journal'
alias is='hledger is -b $(date -d "6 months ago" +%Y-%m) -MTA --tree -2'
alias bs='hledger bs not:accounts'
go() { go() {
dir="$(lr /home /data /etc -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \ dir="$(lr /home /data /etc -t '(name ~~ ".*" && prune || print) && type = d && !(name = ".git")' \