Personal dotfiles for macOS development environment setup.
For a brand new Mac without Git installed, use the bootstrap script:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/gentamura/dotfiles/main/bootstrap.sh)"This script will:
- Check and install Command Line Tools (includes Git)
- Clone this repository to
~/dotfiles - Run the full installation process
If you already have Git installed:
# Clone the repository
git clone https://github.com/gentamura/dotfiles.git ~/dotfiles
cd ~/dotfiles
# Run the full installation
.bin/install.sh init.bin/install.sh initThis runs all installation steps:
- Command Line Tools check/installation
- Homebrew installation and package setup
- Dotfiles symlinking
You can run individual installation steps:
.bin/install.sh init
# or directly
.bin/install_init.shChecks if Command Line Tools are installed and installs them if needed.
.bin/install.sh brew
# or directly
.bin/install_brew.shInstalls Homebrew (if needed) and all packages defined in Brewfile, including:
- Development tools (git, gh, neovim, tmux, etc.)
- Programming languages (rust, openjdk, etc.)
- Databases (postgresql, mysql, mongodb)
- Applications (Docker Desktop, iTerm2, VS Code, etc.)
- Security tools (git-secrets)
.bin/install.sh link
# or directly
.bin/install_link.shCreates symbolic links from this repository to your home directory. Existing files are backed up to ~/.dotbackup.
.gitconfig- Git configuration.config/zed/- Zed editor settings.config/mise/- Mise tool configuration.stylua.toml- Lua formatting configuration
AI-assisted development configuration in .claude/:
| Component | Purpose |
|---|---|
rules/ |
Coding standards (TypeScript, React, Drizzle, Git, Terraform, SST) |
agents/ |
Role-based agents (tech-lead, frontend, backend, infra, qa) |
commands/ |
Slash commands (/req, /adr, /pr:review, /release) |
skills/ |
Reusable procedures (requirements, ADR, migration, hotfix) |
See .claude/README.md for detailed documentation.
See Brewfile for the complete list of installed tools and applications.
- macOS
- Internet connection
If the Command Line Tools installation dialog doesn't appear or fails:
-
Try installing manually:
xcode-select --install
-
If already installed, verify:
xcode-select -p
If Homebrew installation fails:
- Check the official installation guide: https://brew.sh
- Ensure you have sufficient permissions
- Try installing manually and then run
.bin/install_brew.sh
dotfiles/
├── bootstrap.sh # Bootstrap script for first-time setup
├── .bin/ # Installation scripts
│ ├── install.sh # Main installation script
│ ├── install_init.sh # Command Line Tools installation
│ ├── install_brew.sh # Homebrew and packages installation
│ └── install_link.sh # Dotfiles symlinking
├── Brewfile # Homebrew packages definition
├── .claude/ # Claude Code configuration
│ ├── CLAUDE.md # Operating model for Claude
│ ├── README.md # Human documentation
│ ├── rules/ # Coding standards
│ ├── agents/ # Role-based agents
│ ├── commands/ # Slash commands
│ └── skills/ # Reusable procedures
├── .config/ # Application configurations
├── .gitconfig # Git configuration
└── README.md # This file
MIT