One-liner installation system for dotfiles
Privacy-focused bootstrap that installs prerequisites and clones dotfiles without exposing sensitive information.
Run this single command to bootstrap everything:
bash <(curl -fsSL https://raw.githubusercontent.com/alejakun/dotfiles-bootstrap/main/bin/pre-bootstrap.sh)This will:
- Install Xcode Command Line Tools
- Install Homebrew
- Install GitHub CLI (
gh) - Authenticate with GitHub (browser-based, no SSH keys needed)
- Configure Git with your GitHub identity (dynamic discovery)
- Optionally execute full dotfiles installation
If you prefer step-by-step control:
bash <(curl -fsSL https://raw.githubusercontent.com/alejakun/dotfiles-bootstrap/main/bin/pre-bootstrap.sh)bash <(curl -fsSL https://raw.githubusercontent.com/alejakun/dotfiles-bootstrap/main/bin/bootstrap.sh)- Xcode Command Line Tools - Required for compilation
- Homebrew - Package manager for macOS
- GitHub CLI - Authentication and repo management
- Git Configuration - User name/email from GitHub API
- Clones your dotfiles repo (HTTPS, no SSH key needed)
- Initializes submodules
- Sets up logging directory (
~/.dotfiles-install-logs/) - Runs full installation (
bin/install.sh --all) - Generates post-mortem report
- No SSH Keys Required - Uses GitHub CLI with browser auth
- Privacy-Focused - No hardcoded emails or usernames
- Dynamic Discovery - Detects GitHub user automatically
- Comprehensive Logging - All actions logged to
~/.dotfiles-install-logs/ - Post-Mortem Reports - Summary of installation with verification steps
- Continue on Error - Installation completes even if individual steps fail
Installation logs are stored in:
~/.dotfiles-install-logs/
├── install-YYYYMMDD-HHMMSS.log
└── report-YYYYMMDD-HHMMSS.md
View logs:
ls -lt ~/.dotfiles-install-logs/
cat ~/.dotfiles-install-logs/install-*.logIf you see "Faltan X prerequisito(s)":
- Run
pre-bootstrap.shfirst - Verify Homebrew:
brew --version - Verify GitHub CLI:
gh --version - Verify authentication:
gh auth status
If cloning fails:
- Check authentication:
gh auth status - Verify repo exists:
gh repo view alejakun/dotfiles - Try manual clone:
gh repo clone alejakun/dotfiles ~/.dotfiles
Check the logs:
tail -f ~/.dotfiles-install-logs/install-*.log- macOS 11.0 (Big Sur) or later
- Internet connection
- Admin privileges (for Homebrew/Xcode installation)
This bootstrap system is designed with privacy in mind:
- No hardcoded emails or personal information
- Uses GitHub private email for commits
- All user data discovered dynamically via GitHub API
- No sensitive information in public code
MIT License - See dotfiles LICENSE
- dotfiles - Main dotfiles repository (private)
- GitHub CLI - Official GitHub CLI
Author: Alex (@alejakun)