Personal configuration files for shell environments and AI-assisted development tools.
This repository contains:
- Shell configurations: Bash, Zsh, and common shell utilities
- Git configuration: Global git settings and helpers
- Claude Code integration: Comprehensive development guidelines and MCP server configurations
- OpenCode integration: Portable global config with model routing and quantization preferences
- Development tools: Prettier, Stylelint, and other code quality tools
# Clone the repository
git clone https://github.com/cheshirecode/dotfiles.git ~/.dotfiles
# Source shell configurations
source ~/.dotfiles/.bashrc # For Bash
source ~/.dotfiles/.zshrc # For ZshSee SETUP-CLAUDE.md for complete setup instructions.
bin/install.sh links .config/opencode/opencode.jsonc to
~/.config/opencode/opencode.jsonc. The committed config contains global
model defaults, OpenRouter provider ordering, quantization preferences, MCP
servers, and agent defaults. API keys and other credentials stay in environment
variables or OpenCode's local auth store and are not exported here.
Quick links:
- π CLAUDE.md - Comprehensive development guidelines
- βοΈ claude-mcp.example.json - MCP server configuration
- π SETUP-CLAUDE.md - Installation and setup guide
This repository includes comprehensive documentation and configurations for using Claude Code effectively in your development workflow.
- CLAUDE.md - Complete development guidelines covering:
- Development philosophy and best practices
- Code quality standards
- Git workflow and commit conventions
- Testing strategies
- Deployment patterns
- Quality checklists
- WSL-specific considerations
- claude-mcp.example.json - Example MCP server configuration
- Core servers (sequential-thinking, filesystem)
- Optional servers (github, web-search)
- Experimental servers
- WSL and Docker integration notes
-
docs/mcp-servers.md - Detailed MCP server documentation
- Setup instructions for each server
- Authentication and API key management
- Troubleshooting guide
- WSL-specific Docker setup
-
docs/workflows.md - Reusable development workflow patterns
- Atomic commit workflow
- Feature development workflow
- Test-driven development
- Debugging investigation
- Safe refactoring patterns
- WSL environment considerations
-
docs/tool-mapping.md - Cursor to Claude Code migration guide
- Comprehensive tool mapping
- Side-by-side examples
- Best practices and anti-patterns
- WSL path handling
These configurations work on:
- β Linux (native)
- β macOS
- β WSL (Windows Subsystem for Linux) - Extensively documented
WSL users: Special attention has been given to WSL-specific considerations including Docker Desktop integration, path handling, performance optimization, and troubleshooting.
If you're migrating from Cursor, see:
- docs/tool-mapping.md - Tool equivalents and migration guide
- SETUP-CLAUDE.md - "Migration from Cursor" section
The .cursor/ directory contains Cursor-specific configurations that are maintained separately.
.
βββ CLAUDE.md # Main Claude Code development guide
βββ SETUP-CLAUDE.md # Claude Code setup instructions
βββ claude-mcp.example.json # MCP server configuration template
βββ claude-code-migration.plan.md # Implementation plan (reference)
βββ docs/ # Supporting documentation
β βββ mcp-servers.md # MCP server details
β βββ workflows.md # Development workflows
β βββ tool-mapping.md # CursorβClaude Code mapping
βββ .cursor/ # Cursor-specific configurations
β βββ mcp.json # Cursor MCP config
β βββ rules/ # Cursor AI rules
βββ .bashrc # Bash configuration
βββ .zshrc # Zsh configuration
βββ .shell_common # Shared shell configuration
βββ .bash_profile # Bash profile
βββ .profile # POSIX shell profile
βββ .gitconfig # Git configuration
βββ .ssh-agent.sh # SSH agent helper
βββ .prettierrc.js # Prettier configuration
βββ .stylelintrc # Stylelint configuration
βββ README.md # This file
- Shared configuration: Common functions and aliases in
.shell_common - SSH agent management: Automatic SSH agent setup
- Git integration: Enhanced git aliases and helpers
- NVM support: Node Version Manager integration
- Docker helpers: Cleanup and management aliases
- WSL compatibility: Works seamlessly in WSL environments
# Clone to your home directory
git clone https://github.com/cheshirecode/dotfiles.git ~/.dotfiles
cd ~/.dotfiles && bin/install.sh
# bin/install.sh is the SUPPORTED install path: detects your OS, installs
# runtime deps, runs the agent-skill installer (with the rmtree-safety
# sentinel), wires hooks, runs bin/doctor.sh. Idempotent β re-run is safe.
#
# If you want manual symlinks instead, BACK UP FIRST. `ln -sf` will
# silently overwrite an existing real ~/.bashrc / ~/.zshrc / ~/.gitconfig
# and destroy your work. Pattern that won't bite:
# for f in .bashrc .bash_profile .zshrc; do
# [[ -e ~/$f && ! -L ~/$f ]] && mv ~/$f ~/$f.pre-dotfiles
# done
# ln -sf ~/.dotfiles/.bashrc ~/.bashrc
# ln -sf ~/.dotfiles/.bash_profile ~/.bash_profile
# ln -sf ~/.dotfiles/.zshrc ~/.zshrc
# Reload your shell
source ~/.bashrc # or source ~/.zshrcIncludes:
- Useful aliases
- Better diff and merge tools
- Credential management
- WSL-compatible settings
# Link git configuration (BACK UP your existing ~/.gitconfig first!)
[[ -e ~/.gitconfig && ! -L ~/.gitconfig ]] && mv ~/.gitconfig ~/.gitconfig.pre-dotfiles
ln -sf ~/.dotfiles/.gitconfig ~/.gitconfigImportant considerations for WSL users:
-
File System Performance
- Keep projects in WSL filesystem (
/home/...) for best performance - Avoid working in
/mnt/c/...when possible (slower I/O)
- Keep projects in WSL filesystem (
-
Docker Integration
- Use Docker Desktop for Windows with WSL2 integration
- See docs/mcp-servers.md for Docker setup
-
Path Handling
- WSL uses Linux paths:
/home/user/project - Windows paths accessible via:
/mnt/c/Users/... - Use
wslpathfor path conversion
- WSL uses Linux paths:
-
Git Configuration
- Configure line endings:
git config --global core.autocrlf input - Use WSL-native git (not Windows git.exe)
- Configure line endings:
-
Claude Code with WSL
- Config location:
~/.config/claude/mcp.json(Linux path in WSL) - Docker MCP servers work with Docker Desktop integration
- See SETUP-CLAUDE.md for detailed WSL setup
- Config location:
Feel free to open issues or submit pull requests with improvements.
When contributing:
- Follow existing code style
- Test changes in your environment
- Update documentation as needed
- Use conventional commit messages
MIT License - See LICENSE file for details
- CLAUDE.md - Development guidelines
- SETUP-CLAUDE.md - Setup guide
- docs/ - Detailed documentation
Last Updated: 2026-01-21