snippetbashTip
direnv — Shell extension to load and unload environment variables depending on the current directory. More in
Viewed 0 times
shellcommanddirenvandloadunloadcliextension
Problem
How to use the
direnv command: Shell extension to load and unload environment variables depending on the current directory. More information: <https://github.com/direnv/direnv/blob/master/man/direnv.1.md>.Solution
direnv — Shell extension to load and unload environment variables depending on the current directory. More information: <https://github.com/direnv/direnv/blob/master/man/direnv.1.md>.Grant direnv permission to load the
.envrc present in the current directory:direnv allow {{.}}Revoke the authorization to load the
.envrc present in the current directory:direnv deny {{.}}Edit the
.envrc file in the default text editor and reload the environment on exit:direnv edit {{.}}Trigger a reload of the environment:
direnv reloadPrint some debug status information:
direnv statusCode Snippets
Grant direnv permission to load the `.envrc` present in the current directory
direnv allow {{.}}Revoke the authorization to load the `.envrc` present in the current directory
direnv deny {{.}}Edit the `.envrc` file in the default text editor and reload the environment on exit
direnv edit {{.}}Trigger a reload of the environment
direnv reloadPrint some debug status information
direnv statusContext
tldr-pages: common/direnv
Revisions (0)
No revisions yet.