Skip to content

Commit

Permalink
;doc: LEDGER_FILE on Windows: copy improvements from hledger_site#119
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Dec 4, 2024
1 parent 00beef6 commit 595243e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hledger/hledger.m4.md
Original file line number Diff line number Diff line change
Expand Up @@ -6492,6 +6492,8 @@ or try running these commands in a powershell window
> MKDIR finance
> SETX LEDGER_FILE "C:\Users\USERNAME\finance\2023.journal"
```
When correctly configured, in a new terminal window `$env:LEDGER_FILE` will show the file path,
and so will `hledger files`.

# Setting opening balances

Expand Down Expand Up @@ -6841,6 +6843,7 @@ and/or open a new terminal window.
- `LEDGER_FILE` should be a real environment variable, not just a shell variable.
Eg on unix, the command `env | grep LEDGER_FILE` should show it.
You may need to use `export` (see <https://stackoverflow.com/a/7411509>).
On Windows, `$env:LEDGER_FILE` should show it.
- You may need to force your shell to see the new configuration.
A simple way is to close your terminal window and open a new one.

Expand Down

0 comments on commit 595243e

Please sign in to comment.