chezmoi で管理している個人用 dotfiles
.vimrc.zshrc.bashrc.hushlogin.textlintrc
.gitconfig.ssh/config.config/gh/
.config/ghostty/config.config/starship.toml
.Brewfile~/Library/LaunchAgents/com.homebrew.autoupdate.plist
.claude/CLAUDE.md.claude/settings.json.claude/commands/.claude/hooks/
# chezmoi をインストール
brew install chezmoi
# dotfiles を適用
chezmoi init --apply git@github.com:schroneko/dotfiles.git
# Homebrew パッケージをインストール
brew bundle --global
# LaunchAgent を有効化(Homebrew 自動更新)
launchctl load ~/Library/LaunchAgents/com.homebrew.autoupdate.plist# chezmoi edit でファイルを編集
chezmoi edit ~/.zshrc
# 変更をコミット & プッシュ
chezmoi git add .
chezmoi git commit -- -m "zshrc を更新"
chezmoi git push# 通常通り編集
vim ~/.vimrc
# chezmoi に反映
chezmoi add ~/.vimrc
# コミット & プッシュ
chezmoi git add .
chezmoi git commit -- -m "vimrc を更新"
chezmoi git push# 最新版に同期
chezmoi update# 管理されているファイル一覧
chezmoi managed
# ローカルファイルと chezmoi の差分を確認
chezmoi diff
# ファイルを編集(推奨)
chezmoi edit ~/.zshrc
# 変更を適用
chezmoi apply
# 新しいファイルを管理対象に追加
chezmoi add ~/.gitconfig
# Git 操作
chezmoi git status
chezmoi git add .
chezmoi git commit -- -m "コミットメッセージ"
chezmoi git pushchezmoi edit --applyで編集後すぐに適用chezmoi edit --watchで保存時に自動適用chezmoi cdでソースディレクトリに移動(直接 git 操作したい場合)