codex-chezmoi
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese用 chezmoi 同步 Codex 設定
使用 chezmoi 同步 Codex 配置
安裝 chezmoi
安装 chezmoi
Windows:
其他:https://chezmoi.io/install/
winget install twpayne.chezmoiWindows:
其他:https://chezmoi.io/install/
winget install twpayne.chezmoi納管安全設定
纳管安全配置
bash
chezmoi add ~/.codex/AGENTS.md
chezmoi add ~/.codex/skills/xxx⚠️ 不要同步 entire (auth.json、logs、state 會洩漏)
~/.codex/bash
chezmoi add ~/.codex/AGENTS.md
chezmoi add ~/.codex/skills/xxx⚠️ 不要同步整个 (auth.json、logs、state 会泄露)
~/.codex/推送
推送
bash
chezmoi cd
git status --short
git add dot_codex/AGENTS.md dot_codex/skills/<本次修改的skill>
git commit -m "..."
git pushbash
chezmoi cd
git status --short
git add dot_codex/AGENTS.md dot_codex/skills/<本次修改的skill>
git commit -m "..."
git push另一台電腦同步
在另一台电脑同步
bash
chezmoi init <repo-url>
chezmoi applybash
chezmoi init <repo-url>
chezmoi apply之後:chezmoi update
之後:chezmoi update
另一台仍需手動:Codex 登入、Obsidian 路徑、GitHub 登入。
另一台电脑仍需手动完成:Codex 登录、Obsidian 路径、GitHub 登录。