Skip to content

chezmoi から mise bootstrap へ全面移行#22

Open
ry-itto wants to merge 4 commits into
mainfrom
mise-only-dotfiles
Open

chezmoi から mise bootstrap へ全面移行#22
ry-itto wants to merge 4 commits into
mainfrom
mise-only-dotfiles

Conversation

@ry-itto

@ry-itto ry-itto commented Jun 19, 2026

Copy link
Copy Markdown
Owner

概要

dotfiles 管理を chezmoi から mise bootstrap (experimental) へ全面移行する。

主な変更

  • mise.toml[tools] / [dotfiles] / [bootstrap.macos.defaults] / [bootstrap.hooks] / [tasks] を集約
  • dot_* / private_*home/ 配下の $HOME ミラーツリーへ移動し、symlink 配置に変更
  • dot_BrewfileBrewfile。casks は mise の [bootstrap.packages] が非対応のため、brew-bundle タスク(post-packages hook)で brew bundle を実行
  • run_* スクリプトを hooks / tasks へ移植(macOS defaults / Xcode / dein / zplug)
  • env.zshmise activate を Homebrew mise 解決に変更(~/.local/bin/mise ハードコード解消)
  • config.tomlexperimental = true を追加
  • CI を chezmoi verify から mise dotfiles apply + bootstrap --dry-run + 冪等性検証へ刷新
  • README / CLAUDE.md を新フローへ更新

挙動の変化

  • dotfiles は symlink(コピーではない)。~/.zshrc 編集が repo に直反映される一方、repo を消すと symlink が壊れる
  • 新マシンの初回は MISE_EXPERIMENTAL=1 mise bootstrap --yes(既存ファイルがある場合は --force-dotfiles
  • mise は Homebrew 版に一本化(自前 ~/.local/bin/mise は撤去推奨)

検証 (ローカル, mise 2026.6.11)

  • mise dotfiles apply で 11 symlink 生成(スペース込みパスの VSCode settings 含む)
  • mise bootstrap --dry-run クリーン / mise fmt --check / mise tasks ls / zsh -n 全て通過

🤖 Generated with Claude Code

ry-itto and others added 4 commits June 19, 2026 15:32
dotfiles 管理を chezmoi から mise bootstrap (experimental) に置き換え。

- mise.toml に [tools]/[dotfiles]/[bootstrap.macos.defaults]/[bootstrap.hooks]/[tasks] を集約
- dot_*/private_* を home/ 配下の $HOME ミラーツリーへ移動し symlink 配置に変更
- dot_Brewfile -> Brewfile。casks は mise [bootstrap.packages] 非対応のため
  brew-bundle タスク (post-packages hook) で brew bundle を実行
- run_* スクリプトを hooks/tasks へ移植 (macos defaults / xcode / dein / zplug)
- env.zsh の mise activate を Homebrew mise 解決に変更 (~/.local/bin ハードコード解消)
- config.toml に experimental = true を追加
- CI を chezmoi verify から mise dotfiles apply + bootstrap --dry-run + 冪等性検証へ刷新
- README / CLAUDE.md を新フローへ更新

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ap mise)

macos-latest ships mise 2026.6.1 which predates `mise bootstrap` (2026.6.6);
`brew install mise` saw it satisfied and did not upgrade. Use jdx/mise-action
pinned to a version that has bootstrap/dotfiles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
inline run='''...''' は TOML 内で読みづらいため、mise の file task
(mise-tasks/ 配下の実行可能スクリプト、自動検出) へ移動。

- mise-tasks/{brew-bundle,macos-extra,bootstrap} を新設 (#MISE description= 付き)
- mise.toml から [tasks.*] を削除 (hooks は mise run <task> のまま)
- {{config_root}} -> $MISE_PROJECT_ROOT に変更 (file task で利用可能)
- CI lint に shellcheck + bash -n (mise-tasks/*) を追加

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
apt shellcheck exits 1 on info-level SC2016 (intentional literal backticks in
echo messages). Threshold at warning+ so info notes don't fail the build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant