mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-21 10:02:15 +00:00
Update cheatsheets
This commit is contained in:
29
direnv
Normal file
29
direnv
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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:
|
||||
|
||||
`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 reload`
|
||||
|
||||
- Print some debug status information:
|
||||
|
||||
`direnv status`
|
||||
Reference in New Issue
Block a user