;doc: small fixes; remove mention of ancient setenv

This commit is contained in:
Simon Michael 2023-04-20 06:27:08 -10:00
parent fdea2e0bcd
commit ef79537943
2 changed files with 4 additions and 4 deletions

View File

@ -254,10 +254,10 @@ On Windows computers, the default value is probably `C:\Users\YOURNAME\.hledger.
You can change this by running a command like this in a powershell window You can change this by running a command like this in a powershell window
(let us know if you need to be an Administrator, and if this persists across a reboot): (let us know if you need to be an Administrator, and if this persists across a reboot):
``` ```
> setx LEDGER_FILE "C:\Users\MyUserName\finance\2021.journal" > setx LEDGER_FILE "C:\Users\MyUserName\finance\2023.journal"
``` ```
Or, change it in settings: see https://www.java.com/en/download/help/path.html. Or, change it in settings: see <https://www.java.com/en/download/help/path.html>.
}} )m4_dnl }} )m4_dnl
m4_dnl m4_dnl

View File

@ -342,10 +342,10 @@ hledger reads transactions from one or more data files.
The default data file is `$HOME/.hledger.journal` The default data file is `$HOME/.hledger.journal`
(or on Windows, something like `C:\Users\YOURNAME\.hledger.journal`). (or on Windows, something like `C:\Users\YOURNAME\.hledger.journal`).
You can override this with the `$LEDGER_FILE` environment variable: You can override this with the `LEDGER_FILE` environment variable:
```shell ```shell
$ setenv LEDGER_FILE ~/finance/2016.journal $ export LEDGER_FILE=~/finance/2023.journal
$ hledger stats $ hledger stats
``` ```