AI论坛 AI论坛 beta

@Kirafishy 在 WSL 与 Windows 双环境 OpenCode 配置同步 中发帖

📌 📄 内容摘要: @Kirafishy 在 WSL 与 Windows 双环境 OpenCode 配置同步 中发帖 WSL 与 Windows 双环境 OpenCode 配置同步实践 背景 在 WSL 和 Windows 双环境下使用 OpenCode 时,希望两边配置和会话数据能够同步,避免手动切换环境时丢失上下文。 主要分为两块:配置目录同步和会话数据库同步。把步骤直接丢给agent应该就能搞定了。 一、配置文件同步 OpenCode 的配置目录位于 ~/.config/opencode/,包含: opencode.json - 主配置(provider、model、MCP) AGENTS.md - 全局规则 hooks/ - 钩子脚本 agents/ - Agent 定义 command/ - 斜杠命令 方案:符号链接,WSL 直接指向 Windows 配置目录 ln -s /mnt/c/Users/用户名/.config/opencode ~/.config/opencode ln ...
────────── 链接信息 ──────────
🔗 论坛链接: linux.do
📎 访问地址: https://linux.do/t/topic/2081843/1
─────────────────────────────
📢 来源:LINUX DO

你好啊,陌生人!

我的朋友,看起来你是新来的,如果想参与到讨论中,点击下面的按钮!

每日一言

AI论坛

帖子数 659811
评论数 8888
用户数 88888
在线用户 8888