{"id":51133468,"url":"https://github.com/lowski/macos-setup","last_synced_at":"2026-06-25T15:01:15.894Z","repository":{"id":364656097,"uuid":"1267480008","full_name":"lowski/macos-setup","owner":"lowski","description":"Single command batteries-included macOS development machine setup","archived":false,"fork":false,"pushed_at":"2026-06-22T11:46:26.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T13:23:52.768Z","etag":null,"topics":["macos","setup-development-environment","setup-macos"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-12T15:19:57.000Z","updated_at":"2026-06-22T11:46:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lowski/macos-setup","commit_stats":null,"previous_names":["lowski/macos-setup"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lowski/macos-setup","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowski%2Fmacos-setup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowski%2Fmacos-setup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowski%2Fmacos-setup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowski%2Fmacos-setup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lowski","download_url":"https://codeload.github.com/lowski/macos-setup/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lowski%2Fmacos-setup/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34780126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["macos","setup-development-environment","setup-macos"],"created_at":"2026-06-25T15:01:14.811Z","updated_at":"2026-06-25T15:01:15.888Z","avatar_url":"https://github.com/lowski.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Automated macOS Setup\n\nSingle command batteries-included macOS development machine setup: shell, terminal, editor, git, and some useful apps. Everything is **idempotent**, you can re-run it any time to update your machine with the latest config.\n\n## Using it\n\n### Quick start\n\n```sh\ngit clone https://github.com/lowski/macos-setup.git\ncd macos-setup\n./setup.sh\n```\n\nThat's it. `setup.sh` installs the bare minimum to get Ansible running, then hands off to the playbook.\n\n\u003e **Mac App Store apps:** sign in to the App Store first — Slack and Magnet install via `mas`, which requires an active session.\n\u003e\n\u003e **Setting the default login shell:** disabled by default. If you want fish as your login shell, run with `--ask-become-pass` since `chsh` needs sudo.\n\n### What you get\n\n| Role | What it sets up |\n|------|-----------------|\n| `utilities` | Raycast, 1Password + CLI (casks), Magnet (App Store) |\n| `shell` | fish shell, ghostty terminal, eza, zoxide, fisher plugins, custom functions |\n| `git` | git + gh (Homebrew), managed `~/.gitconfig` block (identity left to you) |\n| `editor` | Cursor \u0026 Zed (casks), Claude Code CLI, synced Cursor settings/keybindings/extensions, Zed keymap |\n| `productivity` | Superhuman (cask), Slack (App Store) |\n\nAfter the first run, set your git identity (intentionally not managed for you):\n\n```sh\ngit config --global user.name  \"Your Name\"\ngit config --global user.email \"you@example.com\"\n```\n\n### Re-running\n\nThe playbook is safe to run any time — it reconciles your machine back to this configuration without side effects:\n\n```sh\nansible-playbook site.yml\n```\n\n---\n\n## Working on the project\n\nFor changing what this repo installs or how it's structured.\n\n### How it works\n\n```\nsetup.sh ──▶ Homebrew ──▶ pipx ──▶ ansible ──▶ ansible-playbook site.yml\n```\n\nThe bootstrap chain in `setup.sh` is strictly linear and runs before any Ansible task. From there, `site.yml` maps `localhost` to a list of roles — read it as a table of contents.\n\n- **`setup.sh`** — bootstrap only (Homebrew → pipx → ansible). Idempotent; skips anything already installed.\n- **`site.yml`** — the playbook. Lists the roles to apply.\n- **`roles/`** — one role per *goal*, not per install mechanism. Each role ([`utilities`](roles/utilities), [`shell`](roles/shell), [`git`](roles/git), [`editor`](roles/editor), [`productivity`](roles/productivity)) owns its install, config, and files so a capability can be added or removed as a unit.\n\n### Customizing\n\nPackage and plugin lists live in each role's `defaults/main.yml` — edit those, not the task files. For example, to add a Homebrew formula to the shell, append to `shell_formulae` in `roles/shell/defaults/main.yml`.\n\n### Capturing live config back into the repo\n\nThe `editor` role syncs Cursor config in both directions. To pull your *current* Cursor settings, keybindings, and extension list back into the repo:\n\n```sh\nansible-playbook site.yml --tags capture\n```\n\nThis rewrites `roles/editor/files/cursor/` from the live install so the repo stays the single source of truth.\n\n### Conventions\n\n- **Group by goal, never by mechanism.** A role is a capability (`shell`, `git`), not a tool (`homebrew`, `dotfiles`). Roles freely mix brew, casks, templates, and `defaults write` to achieve their goal.\n- **Data separate from logic.** Generic logic lives in `tasks/`; the lists you edit often live in `defaults/main.yml`.\n- **Idempotency via modules.** Prefer real modules (`homebrew`, `copy`, `lineinfile`) over `shell`/`command`; guard any unavoidable shell with `creates:` / `when:` / `changed_when:`.\n- **No bootstrap roles.** The Xcode CLT → brew → pipx → ansible chain is guaranteed by `setup.sh`. Roles should assume these are installed.\n- **Never commit credentials, keys, or env files.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowski%2Fmacos-setup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flowski%2Fmacos-setup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flowski%2Fmacos-setup/lists"}