LEDGER_FILE is an environment variable which you can export in the shell (not put in the .ledgerrc)
alternatively, you can use the long option --file (not the short -f option) in .ledgerrc On Fri, Jan 7, 2022 at 12:02 PM im hearsay <[email protected]> wrote: > I want to point to my ledger file so that instead of typing 'ledger -f > /path/to/file <command>' I would like to type "ledger <command>" > > I'm using ledger via linux on windows 11 (wsl) > > When I type 'ledger -f /path/to/file <command> my report runs successfully > and as expected. When I point to the same file via ledgerrc I receive the > error "directive <path/to/file> requires an argument" > > In my .ledgerrc file I tried the following: > > LEDGER_FILE=/mnt/c/path/to/file.ledger > -f /mnt/c/path/to/file.ledger > > My assumption is that the /mnt/c path to windows from linux wsl is causing > the issue. > > I'm hoping someone could help me properly format this. Thanks for your > time! > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ledger-cli/23e677c9-d028-41d0-b15f-2eba7636f24dn%40googlegroups.com > <https://groups.google.com/d/msgid/ledger-cli/23e677c9-d028-41d0-b15f-2eba7636f24dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CABjmm%2Bojpu1iiSVWQi2M6iA73fHaZmkbLBsdN3c7WcccmE8Qdw%40mail.gmail.com.
