mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-10 14:45:00 +00:00
Load .env from home, git, cwd, cmd line arg
This commit is contained in:
parent
8a0480a56d
commit
46374fb07a
5 changed files with 32 additions and 11 deletions
|
@ -13,9 +13,14 @@ in the `.env` file.
|
|||
|
||||
{% include special-keys.md %}
|
||||
|
||||
Aider will look for a `.env` file in the
|
||||
root of your git repo or in the current directory.
|
||||
You can give it an explicit file to load with the `--env-file <filename>` parameter.
|
||||
Aider will look for a `.env` file in these locations:
|
||||
|
||||
- Your home directory.
|
||||
- The root of your git repo.
|
||||
- The current directory.
|
||||
- As specified with the `--env-file <filename>` parameter.
|
||||
|
||||
If the files above exist, they will be loaded in that order. Files loaded last will take priority.
|
||||
|
||||
Below is a sample `.env` file, which you
|
||||
can also
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue