🚀 add ledger

This commit is contained in:
Moritz Böhme 2022-06-07 14:42:05 +02:00
parent d2184a96bf
commit feebe86fe5
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 15 additions and 1 deletions

View file

@ -59,8 +59,19 @@
latexwatch = latexwatch =
''find -type f -name "*.tex" | entr -c latexmk -pdf -silent''; ''find -type f -name "*.tex" | entr -c latexmk -pdf -silent'';
ledger = "command ledger --strict --explicit";
bal = "ledger -R bal";
balcash = "bal -X --current --flat ^assets:bank ^liabilities";
balnet = "bal -X --current --depth 2 ^assets ^liabilities";
bud = "ledger --budget bal ^expenses";
budr = ''ledger --budget --real reg -d "d>=[this month]" ^expenses'';
reg = "ledger reg -R --tail 15";
};
variables = {
EDITOR = editor;
LEDGER_FILE = "/home/moritz/Notes/ledger/main.ledger";
}; };
variables = { EDITOR = editor; };
}; };
home-manager.users.moritz = { home-manager.users.moritz = {
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -81,6 +81,9 @@ in {
# :email # :email
mu mu
isync isync
# :lang ledger
ledger
]; ];
}; };
}; };