Last active
December 18, 2025 11:04
-
-
Save leeovery/167d8e564abe1d9a7c01e5a57d194952 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| echo "π Dotfiles Bootstrap" | |
| echo "=====================" | |
| echo "" | |
| # 1. Xcode CLI tools | |
| if ! xcode-select -p &>/dev/null; then | |
| echo "π¦ Installing Xcode Command Line Tools..." | |
| xcode-select --install | |
| echo "" | |
| echo "β³ Press any key when Xcode installation is complete..." | |
| read -n 1 -s | |
| echo "" | |
| fi | |
| echo "β Xcode Command Line Tools" | |
| # 2. Homebrew | |
| if ! command -v brew &>/dev/null; then | |
| echo "πΊ Installing Homebrew..." | |
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
| eval "$(/opt/homebrew/bin/brew shellenv)" | |
| fi | |
| echo "β Homebrew" | |
| # 3. GitHub CLI | |
| if ! command -v gh &>/dev/null; then | |
| echo "π¦ Installing GitHub CLI..." | |
| brew install gh | |
| fi | |
| echo "β GitHub CLI" | |
| # 4. GitHub auth (required for private repo) | |
| if ! gh auth status &>/dev/null 2>&1; then | |
| echo "" | |
| echo "π GitHub authentication required for private repos..." | |
| echo "" | |
| gh auth login | |
| fi | |
| echo "β GitHub authenticated" | |
| # 5. Clone dotfiles | |
| if [[ ! -d "$HOME/.dotfiles" ]]; then | |
| echo "" | |
| echo "π₯ Cloning dotfiles..." | |
| gh repo clone leeovery/dotfiles "$HOME/.dotfiles" | |
| fi | |
| echo "β Dotfiles cloned" | |
| # 6. Run setup | |
| echo "" | |
| echo "π Starting dotfiles setup..." | |
| cd "$HOME/.dotfiles" | |
| ./bin/dotsetup install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment