Browse Source

fix: fix config lookup path on Windows (#56)

Yan Li 2 months ago
parent
commit
29250358e9
3 changed files with 0 additions and 7 deletions
  1. 0 2
      README.md
  2. 0 2
      README.zh-CN.md
  3. 0 3
      src/config/loader.ts

+ 0 - 2
README.md

@@ -457,8 +457,6 @@ You can disable specific MCP servers by adding them to the `disabled_mcps` array
 | `~/.config/opencode/oh-my-opencode-slim.json` | Plugin settings (agents, tmux, MCPs) |
 | `.opencode/oh-my-opencode-slim.json` | Project-local plugin overrides (optional) |
 
-> **Platform paths:** On Windows, user config may also be at `%APPDATA%\opencode\`.
-
 ---
 
 ### Plugin Config (`oh-my-opencode-slim.json`)

+ 0 - 2
README.zh-CN.md

@@ -474,8 +474,6 @@ bunx oh-my-opencode-slim install --help
 | `~/.config/opencode/oh-my-opencode-slim.json` | 插件设置(代理、tmux、MCP) |
 | `.opencode/oh-my-opencode-slim.json` | 项目级插件覆盖(可选) |
 
-> **平台路径:** 在 Windows 上,用户配置可能位于 `%APPDATA%\opencode\`。
-
 ---
 
 ### 插件配置 (`oh-my-opencode-slim.json`)

+ 0 - 3
src/config/loader.ts

@@ -4,9 +4,6 @@ import * as os from "os";
 import { PluginConfigSchema, type PluginConfig } from "./schema";
 
 function getUserConfigDir(): string {
-  if (process.platform === "win32") {
-    return process.env.APPDATA || path.join(os.homedir(), "AppData", "Roaming");
-  }
   return process.env.XDG_CONFIG_HOME || path.join(os.homedir(), ".config");
 }