🐛 fix emacs ledger xcat not working
parent
2feb934704
commit
586f6ba6b6
|
@ -18,13 +18,22 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
my.shell.aliases = {
|
my.shell = {
|
||||||
bal = "ledger bal";
|
variables = {
|
||||||
balcash = "ledger bal -R -X € --current --flat ^assets:bank ^liabilities";
|
LEDGER_FILE = "/home/moritz/Nextcloud/Notes/ledger/main.ledger";
|
||||||
balnet = "ledger bal -R -X € --current --depth 2 ^assets ^liabilities";
|
};
|
||||||
bud = ''ledger --budget --unbudgeted bal ^expenses -p "this month"'';
|
aliases =
|
||||||
budr = ''ledger --budget reg -p "this month" ^expenses'';
|
let
|
||||||
reg = "ledger reg -R -V --tail 15";
|
applyCommon = name: command: "${command} --payee note --strict --explicit";
|
||||||
|
in
|
||||||
|
mapAttrs applyCommon {
|
||||||
|
bal = "ledger bal";
|
||||||
|
balcash = "ledger bal -R -X € --current --flat ^assets:bank ^liabilities";
|
||||||
|
balnet = "ledger bal -R -X € --current --depth 2 ^assets ^liabilities";
|
||||||
|
bud = ''ledger bal --budget --unbudgeted -p "this month"'';
|
||||||
|
budr = ''ledger reg --budget --unbudgeted -p "this month"'';
|
||||||
|
reg = "ledger reg -R -V --tail 15";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
home-manager.users.moritz = {
|
home-manager.users.moritz = {
|
||||||
home.packages = with pkgs; let
|
home.packages = with pkgs; let
|
||||||
|
@ -40,17 +49,11 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
[ ledger reg-copy ];
|
[ ledger reg-copy hledger hledger-ui hledger-web ];
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
"fish/completions/ledger.fish" = {
|
"fish/completions/ledger.fish" = {
|
||||||
text = builtins.readFile ./ledger.fish;
|
text = builtins.readFile ./ledger.fish;
|
||||||
};
|
};
|
||||||
"ledger/ledgerrc".text = ''
|
|
||||||
--strict
|
|
||||||
--explicit
|
|
||||||
--payee note
|
|
||||||
--file ~/Notes/ledger/main.ledger
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue