2020-10-24 13:29:25 +01:00
|
|
|
# direnv
|
|
|
|
|
|
|
|
> Shell extension to load and unload environment variables depending on the current directory.
|
|
|
|
> More information: <https://github.com/direnv/direnv>.
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Grant direnv permission to load the specified `.envrc`:
|
2020-10-24 13:29:25 +01:00
|
|
|
|
|
|
|
`direnv allow`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Revoke the authorization of a given `.envrc`:
|
2020-10-24 13:29:25 +01:00
|
|
|
|
|
|
|
`direnv deny`
|
|
|
|
|
|
|
|
- Edit the `.envrc` file in the default text editor and reload the environment on exit:
|
|
|
|
|
2020-12-27 01:19:32 +00:00
|
|
|
`direnv edit .`
|
2020-10-24 13:29:25 +01:00
|
|
|
|
|
|
|
- Trigger a reload of the environment:
|
|
|
|
|
|
|
|
`direnv reload`
|
|
|
|
|
|
|
|
- Print some debug status information:
|
|
|
|
|
|
|
|
`direnv status`
|