opencode-direnv
v1.1.1
Published
OpenCode plugin that integrates direnv environment loading into shell commands
Maintainers
Readme
opencode-direnv
OpenCode plugin that loads direnv environments into shell commands.
What it does
- Injects
direnv exportvars into every shell command via theshell.envhook - Provides a
direnv_allowtool that prompts for user approval before allowing.envrcfiles - Blocks direct
direnv allowin bash to enforce the approval flow - Loads direnv env into
process.envat startup for LSP servers
Install
Add to your opencode.json:
{
"plugin": ["opencode-direnv"]
}Requires direnv to be installed on the host.
License
MIT
