My personal dotfiles for macOS development environment, managed by chezmoi.
# Install chezmoi if you don't have it
brew install chezmoi
# Initialize and apply this repository
chezmoi init --apply ry-itto/dotfiles- macOS (this configuration is macOS-only)
- Command Line Tools for Xcode
- Internet connection for downloading packages
brew install chezmoi
chezmoi init --apply ry-itto/dotfileschezmoi init --apply will:
- Clone this repository into
~/.local/share/chezmoi - Render dotfiles into
$HOME(e.g.dot_zshrcโ~/.zshrc) - Run
run_onchange_install-brew-packages.shto install Homebrew bundle from~/.Brewfile - Run
run_onchange_configure-macos-defaults.shandrun_onchange_configure-xcode.shto apply system defaults - Run
run_once_install-zplug.sh,run_once_install-dein.shto bootstrap shell/editor plugin managers - Run
run_once_install-mise-tools.shto install any tools defined indot_config/mise/config.toml(ใฐใญใผใใซใงใฏ่จ่ชใฉใณใฟใคใ ใๅบๅฎใใชใๆน้ โ ่ฉณ็ดฐใฏ ใใญใฐใฉใใณใฐ่จ่ชใฎ็ฎก็ๆน้)
# Pull latest changes from this repo and re-apply
chezmoi update
# Edit a managed file (opens source file in $EDITOR)
chezmoi edit ~/.zshrc
# See what would change before applying
chezmoi diff
# Add a new file from $HOME into management
chezmoi add ~/.somefileNote: After migrating to chezmoi, editing files in
$HOMEdirectly does not sync back to this repository. Usechezmoi editor edit the source file under~/.local/share/chezmoi, thenchezmoi apply.
.
โโโ dot_zshrc # โ ~/.zshrc
โโโ dot_zsh/ # โ ~/.zsh/
โ โโโ alias.zsh
โ โโโ env.zsh
โ โโโ plugin.zsh
โ โโโ style.zsh
โ โโโ functions/
โ โโโ bin/executable_reload # โ ~/.zsh/bin/reload (chmod +x)
โโโ dot_gitconfig
โโโ dot_Brewfile
โโโ dot_vim/
โโโ dot_hammerspoon/
โโโ dot_claude/ # โ ~/.claude/
โโโ dot_config/
โ โโโ ghostty/config
โ โโโ nvim/
โ โโโ starship.toml
โ โโโ mise/config.toml # mise settings
โโโ private_Library/
โ โโโ private_Application Support/Code/User/settings.json # โ VSCode settings
โโโ run_onchange_install-brew-packages.sh.tmpl
โโโ run_onchange_configure-macos-defaults.sh
โโโ run_onchange_configure-xcode.sh
โโโ run_once_install-zplug.sh
โโโ run_once_install-dein.sh
โโโ run_once_install-mise-tools.sh
โโโ .chezmoiignore # files to skip during apply
โโโ .github/workflows/ci.yml
- Package Managers: Homebrew, mise
- Shell: Zsh with zplug, Starship prompt
- Editors: Neovim, VSCode
- Version Control: Git, GitHub CLI
mise ใงใใญใธใงใฏใใใจใซ็ฎก็ใใใ่ฉณ็ดฐใฏ ใใญใฐใฉใใณใฐ่จ่ชใฎ็ฎก็ๆน้ ใๅ็ งใ
- iOS Development: Xcode, XcodeGen, xcbeautify
- macOS Apps: Ghostty, Raycast, Hammerspoon, Rectangle
Modular configuration in dot_zsh/:
alias.zsh: Custom command aliasesenv.zsh: Environment variables and PATH setupplugin.zsh: Zsh plugin configuration via zplugstyle.zsh: Prompt and appearance settings
dot_gitconfig provides commit template, GitHub CLI helpers, and standard pull/credential settings.
Vim setup is wired up via dein.vim. Plugin manifests live under dot_vim/rc/.
- Fork this repository to create your own version
- Edit configurations under
~/.local/share/chezmoi/(or viachezmoi edit) - Apply changes with
chezmoi apply - Modify packages in
dot_Brewfile
ใใฎ dotfiles ใงใฏ ใใญใฐใฉใใณใฐ่จ่ชใฉใณใฟใคใ ใฎๅ ฑ้่จญๅฎ๏ผใฐใญใผใใซใใผใธใงใณ๏ผใๆใใชใ ๆน้ใๆกใใ
- ใใญใธใงใฏใๅดใงๆๅฎใใใฆใใๅ ดๅ: ใใฎใใญใธใงใฏใใฎ
mise.toml/.tool-versions/.node-version/.ruby-versionใชใฉใซๅพใใmise๏ผใพใใฏๅใใญใธใงใฏใๆๅฎใฎๆนๆณ๏ผใงๅฐๅ ฅใใใ - ใใฎไปใใญใผใซใซใงไธๆ็ใซๅฟ
่ฆใซใชใฃใๅ ดๅ:
mise use -g <tool>@<version>ใชใฉใง้ฝๅบฆใฐใญใผใใซใซๅ ฅใใใdotfiles ๅดใซใฏใณใใใใใชใใ - dotfiles ็ฎก็ไธใฎ
dot_config/mise/config.toml: ่จ่ชใฉใณใฟใคใ ใฎใใผใธใงใณใฏ่จ่ฟฐใใชใใmise ่ชไฝใฎ่จญๅฎ๏ผไพ:idiomatic_version_file_enable_tools๏ผใซ้ใใ
ๅ ฑ้่จญๅฎใงใฉใณใฟใคใ ใฎใใผใธใงใณใๅบๅฎใใใจใ
- ใใทใณใใจใปใใญใธใงใฏใใใจใฎใใผใธใงใณๅทฎ็ฐใซ่ฟฝๅพใใใใใซ dotfiles ๅดใ้ ป็นใซๆดๆฐใใใใจใซใชใ
- ใใญใธใงใฏใๅดใฎๆๅฎใจใฐใญใผใใซๆๅฎใ่ก็ชใใใจใใฎๅชๅ ้ ไฝใฎ่ชฟๆดใ้ขๅ
ใซใชใใใใญใธใงใฏใๅดใฎๆๅฎใๅธธใซๅชๅ ใใใใจใงใdotfiles ใใ็ฐๅขใฎๅๅฐใใ ใใซไฟใคใ
Homebrew ใฎใใฉใผใใฅใฉใฎไพๅญ้ขไฟใจใใฆ PythonใปRuby ใชใฉใๅ
ฅใฃใฆใใพใใฑใผในใฏ่จฑๅฎนใใใbrew bundle ใฎๅบๅใ /opt/homebrew/Cellar ้
ไธใซๅ
ฅใใใฎใฏใใใผใซใฎๅไฝใซๅฟ
่ฆใชๅฏ็ฃ็ฉใจใฟใชใ๏ผใใญใธใงใฏใ็จ้ใงใฏ mise ๅดใๅชๅ
ใใ๏ผใ
Feel free to open issues or submit pull requests if you have suggestions for improvements.
This repository is available under the MIT License. Feel free to fork and modify for your own use.