1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/direnv.md

25 lines
593 B
Markdown
Raw Normal View History

2020-10-24 17:59:25 +05:30
# direnv
> Shell extension to load and unload environment variables depending on the current directory.
> More information: <https://github.com/direnv/direnv>.
- Grant direnv permission to load the `.envrc` present in the current directory:
2020-10-24 17:59:25 +05:30
`direnv allow {{.}}`
2020-10-24 17:59:25 +05:30
- Revoke the authorization to load the `.envrc` present in the current directory:
2020-10-24 17:59:25 +05:30
`direnv deny {{.}}`
2020-10-24 17:59:25 +05:30
- Edit the `.envrc` file in the default text editor and reload the environment on exit:
`direnv edit {{.}}`
2020-10-24 17:59:25 +05:30
- Trigger a reload of the environment:
`direnv reload`
- Print some debug status information:
`direnv status`