# Strict Developer Environment Installer A robust, idempotent, and interactive bash script to bootstrap your macOS, Linux, or WSL development environment. Unlike standard setup scripts that rely heavily on package managers like Homebrew or Apt (which can introduce bloat, dependency hell, or outdated packages), this script is designed with a **"Strict Official Source"** philosophy. It dynamically fetches the absolute latest binaries and pre-compiled releases directly from the official maintainers (e.g., GitHub API, Python.org, Amazon). ## ✨ Key Features * **Zero-Brew Dependency:** By default, it bypasses Homebrew entirely, fetching tools directly from official APIs and release pages (Homebrew is available as an optional install). * **Idempotent:** Safe to run multiple times. It intelligently checks if a tool is already installed before attempting to download it. * **Dynamic Versioning:** Pings official APIs (like GitHub Releases or `go.dev/VERSION`) to ensure you are downloading the exact latest version at the time of execution. * **Auto-Path Management:** Intelligently injects paths into a dedicated `~/.pathrc` (or your `.bashrc`/`.zshrc`) without mangling your config files. * **Architecture Aware:** Automatically detects if you are running on Intel (`x86_64`) or Apple Silicon/ARM (`aarch64`/`arm64`) and downloads the correct binaries. ## 🚀 Usage You can launch the interactive installer directly from your terminal with a single command: ```bash bash -c "$(curl -fsSL https://opengist.rmrf.online/weehong/af1c64c143a44ffbb0a1632dd6a32af1/raw/HEAD/menu.sh)" ``` Once the menu loads, simply **follow the interactive prompts**. You can select multiple tools at once by entering space-separated numbers (e.g., `1 3 8 12`). ## 🛠️ Included Tools ### Core Runtimes & Managers * **Build Tools:** GCC, Make, Git, Curl, Unzip, and core libraries. * **Homebrew:** (Optional) Installed officially. * **NVM (Node Version Manager):** Includes interactive prompt to install LTS or Latest Node.js immediately. * **Python 3:** Fetches the latest stable `.pkg` for Mac or compiles strictly from source for Linux. * **Go:** Fetches the latest tarball and installs system-wide to `/usr/local/go`. * **SDKMAN:** For managing Java, Kotlin, and Gradle. * **.NET:** Installed via Microsoft's official script. ### Cloud & Infrastructure * **Docker:** Downloads the official `.dmg` (macOS) or runs the official `get.docker.com` script (Linux) with auto-group assignment. * **AWS CLI:** Fetches the official binaries directly from Amazon. * **Google Cloud CLI (gcloud):** Official Google setup script. * **Firebase CLI:** Standalone binary (no Node.js required natively). ### Dev Tools & Security * **GitHub CLI (gh):** Downloaded directly from GitHub Releases to `/usr/local/bin`. * **Infisical CLI:** Downloaded directly from GitHub Releases for secret management. ### AI & Agentic Tools * **Claude Code CLI:** Anthropic's official agent. * **OpenCode:** AI agent orchestration. * **OpenAI Codex CLI:** Required NVM/Node.js to run. ## ⚠️ Important Notes & Troubleshooting * **Restart Your Shell:** After running the script for the first time, you should restart your terminal or run `source ~/.bashrc` (or `~/.zshrc`) to ensure all new PATH variables (like NVM, Go, or .NET) take effect. * **Docker Permissions (Linux):** The script automatically adds your user to the `docker` group. You will need to log out and log back in for this to take effect. * **AWS CLI on Linux:** Ensure you install **Build Tools (Option 1)** first if you are on a fresh Linux install, as the AWS installer requires `unzip` to extract the payload. --- *Built for developers who want total control over their toolchain.*