How to change the default files.

28 views
Skip to first unread message

Di Su

unread,
Oct 20, 2025, 8:56:40 AM (11 days ago) Oct 20
to hledger
I'm new to hledger. I'm using it on windows 11.

The default accounting data is a journal file C:\Users\su\.hledger.journal  after typing hledger add.  And I tried to change it to another files by powershell typing  SETX LEDGER_FILE "D:\documents\hledger_files\finance\2025.journal".according to this document hledger manual (1.50) - hledger.  And typing  $env:LEDGER_FILE in powershell, It appears D:\documents\hledger_files\finance\2025.journal correctly. But using hledger files, the output is still C:\Users\su\.hledger.journal.

Could any one help?

Simon Michael

unread,
Oct 20, 2025, 9:26:07 AM (11 days ago) Oct 20
to hle...@googlegroups.com
Hi,

Is anything different if you run it in a new powershell window ?

Is your user account a windows administrator , or not ?

If you like, share the output of 'hledger setup' ?

The linked java.com page talks about an  Environment Variables setting - does that exist/work on windows 11 ?

Simon Michael

unread,
2:13 AM (11 hours ago) 2:13 AM
to hle...@googlegroups.com
For the record, we figured this out: `hledger files` does not show the
$LEDGER_FILE if that file does not yet exist. (`hledger setup` does.)
I'll improve this.

Reply all
Reply to author
Forward
0 new messages