add ledger command

This commit is contained in:
Ingolf Wagner 2021-04-22 08:32:14 +02:00
parent 153585c11b
commit 329d924674
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -109,6 +109,12 @@ let
TERM=xterm-mono ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/.hledger-borrow "$@" TERM=xterm-mono ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/.hledger-borrow "$@"
''; '';
bank-report = pkgs.writers.writeDashBin "bank-report" # sh
''
${pkgs.hledger}/bin/hledger --file ~/finance/hledger/all.journal balance -M -B date:$(date +%Y-%m -d 'last year')..
${pkgs.hledger}/bin/hledger --file ~/finance/hledger/all.journal balance -M -B date:$(date +%Y-%m -d 'last year').. --depth 1
'';
bank = pkgs.writers.writeDashBin "bank" # sh bank = pkgs.writers.writeDashBin "bank" # sh
'' ''
${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger/all.journal ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger/all.journal
@ -211,6 +217,7 @@ in {
borrow borrow
bank bank
bank-report
(bank-old "2021") (bank-old "2021")
(bank-old "2020") (bank-old "2020")