# direnv
> Load and unload environment variables depending on the current directory

## Summary
Automatically load and unload environment variables based on the current directory

## Capabilities
- Auto-load .envrc files when entering directories
- Auto-unload variables when leaving directories
- Support for multiple shells
- Nix integration
- Security model with directory allowlisting

## When to Use
- When you need per-project environment variables
- When you want automatic environment setup per directory

## When NOT to Use
- When you prefer manual environment management

## Related Tools
- [chezmoi](/tools/chezmoi) (complementary)

---
Source: https://littlescripts.sh/tools/direnv
