4.6 Keeping it consistent

59 views
Skip to first unread message

Oliver Hardy

unread,
Jul 20, 2020, 11:51:24 PM7/20/20
to Ledger
Following the instructions in section 4.6 (https://www.ledger-cli.org/3.0/doc/ledger3.html#Keeping-it-Consistent), I've generated an ~/Accounts.dat file.

Two questions:
1) How do I get ledger to read that file? I assume there is an entry one enters in ~/.ledgerrc but I find nothing in the man pages.

2) Where does one find that information?

Thank you.

Martin Michlmayr

unread,
Jul 20, 2020, 11:53:59 PM7/20/20
to ledge...@googlegroups.com
* Oliver Hardy <ohar...@gmail.com> [2020-07-20 20:51]:
> I've generated an ~/Accounts.dat file.
>
> Two questions:
> 1) How do I get ledger to read that file? I assume there is an entry one
> enters in ~/.ledgerrc but I find nothing in the man pages.

You can use -f on the command line to specify a file, so in your case
you'd do:
ledger -f ~/Accounts.dat ...

You can also set the LEDGER_FILE environment variable.

> 2) Where does one find that information?

https://www.ledger-cli.org/3.0/doc/ledger3.html#Basic-options

--
Martin Michlmayr
https://www.cyrius.com/

Oliver Hardy

unread,
Jul 21, 2020, 10:11:43 AM7/21/20
to Ledger
Thank you for that.

Jasel17212

unread,
Jul 23, 2020, 1:41:54 PM7/23/20
to Ledger
One option is to just include it in your ledger file.

I set mine up like this:

include accounts.dat
include budget.dat
include_register_2018.dat
include register_2019.dat
include register_2020.dat

James L.

Reply all
Reply to author
Forward
0 new messages