|
2 | 2 |
|
3 | 3 | Bootstraps a developer machine with the baseline tools required to work on Trusted projects. |
4 | 4 |
|
| 5 | +**Supported platforms:** MacOS · Ubuntu · Omarchy |
| 6 | + |
5 | 7 | ## What it installs |
6 | 8 |
|
7 | | -- **Homebrew** (macOS) / apt updates (Ubuntu) / pacman updates (Arch) |
| 9 | +- **package management** |
| 10 | + - homebrew for MacOS |
| 11 | + - apt updates for Ubuntu |
| 12 | + - pacman/yay updates for Omarchy |
8 | 13 | - **git** — version control |
9 | 14 | - **gh** — GitHub CLI (+ authenticates with GitHub) |
10 | 15 | - **mise** — version manager for Ruby, Node, etc. |
@@ -32,34 +37,37 @@ cd <project> && bin/setup |
32 | 37 |
|
33 | 38 | ## Re-running |
34 | 39 |
|
35 | | -The script is idempotent. Run it again at any time to ensure your tools are up to date and apply new migrations: |
| 40 | +The script is idempotent. Run it again at any time to ensure your tools are up to date and apply new migrations. |
| 41 | + |
| 42 | +Locally from the cloned repo at `~/Work/devsetup`: |
| 43 | + |
| 44 | +```bash |
| 45 | +bash ~/Work/devsetup/setup.sh |
| 46 | +``` |
| 47 | + |
| 48 | +Via curl (fetches latest from GitHub): |
36 | 49 |
|
37 | 50 | ```bash |
38 | 51 | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/trusted/devsetup/main/setup.sh)" |
39 | 52 | ``` |
40 | 53 |
|
41 | | -## Migrations |
42 | 54 |
|
43 | | -One-time environment changes are tracked as migration scripts in `migrations/`. They run automatically at the end of setup and are only executed once per machine. |
| 55 | +## Diagnosing your environment |
44 | 56 |
|
45 | | -To re-run a specific migration: |
| 57 | +Run `doctor.sh` at any time to check that all expected tools are installed and no migrations are pending. It never changes anything — only reports: |
46 | 58 |
|
47 | 59 | ```bash |
48 | | -./setup.sh --rerun <timestamp> |
| 60 | +bash ~/Work/devsetup/doctor.sh |
49 | 61 | ``` |
50 | 62 |
|
51 | | -## Supported platforms |
52 | | - |
53 | | -- macOS (Homebrew) |
54 | | -- Ubuntu / Debian (apt) |
55 | | -- Omarchy (pacman/yay) |
| 63 | +## Migrations |
56 | 64 |
|
57 | | -## Diagnosing your environment |
| 65 | +One-time environment changes are tracked as migration scripts in `migrations/`. They run automatically at the end of setup and are only executed once per machine. |
58 | 66 |
|
59 | | -Run `doctor.sh` at any time to check that all expected tools are installed and no migrations are pending. It never changes anything — only reports: |
| 67 | +To re-run a specific migration: |
60 | 68 |
|
61 | 69 | ```bash |
62 | | -bash doctor.sh |
| 70 | +bash ~/Work/devsetup/setup.sh --rerun <timestamp> |
63 | 71 | ``` |
64 | 72 |
|
65 | 73 | ## How it works |
|
0 commit comments