add ledger command
This commit is contained in:
parent
153585c11b
commit
329d924674
1 changed files with 7 additions and 0 deletions
|
@ -109,6 +109,12 @@ let
|
|||
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
|
||||
''
|
||||
${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger/all.journal
|
||||
|
@ -211,6 +217,7 @@ in {
|
|||
|
||||
borrow
|
||||
bank
|
||||
bank-report
|
||||
(bank-old "2021")
|
||||
(bank-old "2020")
|
||||
|
||||
|
|
Loading…
Reference in a new issue