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
| #Requires -Version 5.1 | |
| <# | |
| .SYNOPSIS | |
| Self-contained machine bootstrap for Windows. | |
| Installs missing prerequisites, walks through Bitwarden login, | |
| loads the personal SSH key into the ssh-agent service, clones | |
| the private machine-setup repo, and runs bootstrap.ps1. | |
| Work-identity setup (work SSH key, work git identity) is handled | |
| by the private bootstrap.ps1 — keeping it out of this public gist. |
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 | |
| # Self-contained machine bootstrap for Linux (Ubuntu, Fedora, Arch). | |
| # Installs any missing prerequisites, walks through Bitwarden login, | |
| # loads SSH key into agent memory (never written to disk), then clones | |
| # and runs the private machine-setup repo. | |
| # | |
| # One-liner: | |
| # curl -fsSL https://gist.githubusercontent.com/delabrcd/a4f3b822d79a362b878209742b286b0a/raw/bootstrap-init.sh \ | |
| # -o /tmp/bs.sh && bash /tmp/bs.sh |
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 | |
| # | |
| # bootstrap-git.sh | |
| # Setup Git with user info and SSH commit signing | |
| # | |
| set -euo pipefail | |
| # --- Prompt for name and email --- | |
| read -rp "Enter your Git user name: " GIT_NAME |