Re: LEDGER_FILE / -f in .ledgerrc

5 views
Skip to first unread message

Nick Psaris

unread,
Jan 10, 2022, 10:03:17 AM (13 days ago) Jan 10
to ledge...@googlegroups.com
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 <imhe...@gmail.com> 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 ledger-cli+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/23e677c9-d028-41d0-b15f-2eba7636f24dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages