



















1
windows内安装的ccswitch,claude/codex 安装在wsl内,每次在ccswitch中切换中转站就会改cli的配置文件,已经安装的plugins/skills/statusline配置会丢失,请问有什么办法解决吗?谢谢!!!
torvalds (Linus Torvalds) 2
把这些配置放到通用配置里就可以了
我之前也踩过这个坑,可以配置好通用配置,{
“env”: {
“ANTHROPIC_BASE_URL”: “https://chatgpt.com/backend-api/codex”,
“ANTHROPIC_MODEL”: “gpt-5.5”,
“ANTHROPIC_DEFAULT_HAIKU_MODEL”: “gpt-5.4-mini”,
“ANTHROPIC_DEFAULT_SONNET_MODEL”: “gpt-5.5”,
“ANTHROPIC_DEFAULT_OPUS_MODEL”: “gpt-5.5”,
“ANTHROPIC_DEFAULT_SONNET_MODEL_NAME”: “gpt-5.5”,
“ANTHROPIC_DEFAULT_OPUS_MODEL_NAME”: “gpt-5.5”
},
“enabledPlugins”: {
“claude-hud@claude-hud”: true,
“code-simplifier@claude-plugins-official”: true,
“superpowers@claude-plugins-official”: true,
“skill-creator@claude-plugins-official”: true,
“code-review@claude-plugins-official”: true,
“ralph-loop@claude-plugins-official”: true
},
“extraKnownMarketplaces”: {
“claude-hud”: {
“source”: {
“source”: “github”,
“repo”: “jarrodwatts/claude-hud”
}
}
},
“includeCoAuthoredBy”: false,
“statusLine”: {
“type”: “command”,
“command”: “cols=${COLUMNS:-}; case "cols\" in \"\"|*[!0-9]*) cols=(stty size </dev/tty 2>/dev/null | awk ‘{print $2}’);; esac; case "cols\" in \"\"|*[!0-9]*) cols=120;; esac; export COLUMNS=(( cols > 4 ? cols - 4 : 1 )); plugin_dir=(ls -1d \"{CLAUDE_CONFIG_DIR:-HOME/.claude}\"/plugins/cache/*/claude-hud/*/ 2>/dev/null | sort -V | tail -1); exec \"/c/Program Files/nodejs/node\" \"{plugin_dir}dist/index.js"”
}
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。