pi-direnv
v0.1.0
Published
Auto-load direnv environment at session start — ensures bash commands have project-specific env vars from .envrc
Maintainers
Readme
pi-direnv
Auto-load direnv environment at session start. Ensures bash commands have project-specific env vars from .envrc files.
Install
pi install npm:pi-direnvWhat it does
On session_start:
- Checks if
direnvis installed (skips silently if not) - Searches for
.envrcfrom cwd up to the git root - Runs
direnv export jsonand applies variables toprocess.env - Shows a notification with the count of loaded vars
- Warns if
.envrcis blocked (needsdirenv allow)
Why
Nix flakes + direnv is a common pattern. Without this extension, pi exec commands miss project-specific PATH entries, env vars, and tool versions defined in your flake's devShell.
Inspired by simonwjackson/opencode-direnv.
