zc-workstationDocumentation PDF GitHub

direnv

direnv, per-folder environment variables.

.md

direnv loads a project’s .envrc when you enter its folder and unloads it when you leave, so each project gets its own variables without polluting the shell.

On the workstation

  • Installed by the direnv formula and hooked into zsh.

Keys and commands

Key or command Does

direnv allow

Trust this folder’s .envrc after reading it

See also

Edit this page Last updated

Keyboard shortcuts

Ctrl/⌘ K or /
Search the docs
↑ ↓ Enter
Move through the search results
← →
Previous or next page
f
Filter the pages in the sidebar
g h
Home
t
Cycle the theme
?
This list
Esc
Close a menu or the search results