1.5 KiB
1.5 KiB
bootstrap_setup
Bootstraps a new development machine by installing essential tools and setting up the development environment.
Description
This script automates the initial setup of a new development machine by:
- Installing essential tools (git, stow, curl)
- Installing package manager (Homebrew on macOS)
- Cloning the dotfiles repository
- Setting up development scripts
Platform Support: macOS (Homebrew), Linux (apt)
Usage
./bootstrap_setup.sh [--dry-run]
Options
--dry-run: Enable dry run mode. Commands will be echoed but not executed.
What It Does
-
Installs essential tools:
- Linux:
apt update && apt install -y git stow curl - macOS: Installs Xcode Command Line Tools, Homebrew, then
brew install stow git curl
- Linux:
-
Clones dotfiles repository:
- Clones
https://github.com/jfrays/dotfiles.gitto~/.dotfiles - Runs the dotfiles setup script
- Clones
-
Sets up development scripts:
- Creates
~/.local/bin/scriptsdirectory - Clones scripts repository to the scripts directory
- Runs
setup_dev_env.shto complete the environment setup
- Creates
Example
# Run the bootstrap normally
./bootstrap_setup.sh
# Preview what would happen without making changes
./bootstrap_setup.sh --dry-run
Notes
- The script uses
set -eto exit immediately if any command fails - Ensure you have sudo access on Linux systems
- On macOS, you may need to approve Xcode license after command line tools installation