This commit is contained in:
2026-03-21 18:45:02 +00:00
parent 3b345614f7
commit 80f24ce11f
28 changed files with 219 additions and 1526 deletions

View File

@@ -1,16 +0,0 @@
import type { Plugin } from "@opencode-ai/plugin";
export const DirenvPlugin: Plugin = async ({ $ }) => {
return {
"shell.env": async (input, output) => {
try {
const exported = await $`direnv export json`
.cwd(input.cwd)
.quiet()
.json();
Object.assign(output.env, exported);
} catch {}
},
};
};