Skip to content

Latest commit

 

History

History
98 lines (80 loc) · 3.02 KB

File metadata and controls

98 lines (80 loc) · 3.02 KB

Scripts

Scripts are grouped by functionality:

Directory Purpose
app-store/ Mac App Store app installs/removals through mas.
audit/ Check-only security and drift audits for repo, host, personal, and devbox contexts.
bootstrap/ Install and configure Homebrew, chezmoi dotfiles, Git, Codex, Chrome, and repos.
lib/ Shared shell helpers used by scripts.
secrets/ Owner-local secret-manager bootstrap and command-boundary wrappers.
tizen/ Samsung Tizen Studio install and certificate/profile archive helpers.
verify/ Deterministic repo, bootstrap, and devbox service-boundary verification.

Run scripts from the repository root unless a script says otherwise. Mise task wrappers live in .mise/tasks/ and call these scripts; keep reusable logic here so scripts remain lintable and directly runnable during bootstrap.

Common Commands

Repository-only verification:

./scripts/verify/repo.sh
mise run verify
mise run verify:fast

Install the local pre-push guard:

./scripts/bootstrap/install-git-hooks.sh

Bootstrap entry points:

./scripts/bootstrap/brew-bundle.sh personal
./scripts/bootstrap/brew-bundle.sh devbox
./scripts/bootstrap/brew-bundle.sh --shared-only
./scripts/bootstrap/apply-dotfiles.sh --dry-run --verbose
./scripts/bootstrap/install.sh
./scripts/bootstrap/configure-git.sh --profile personal
./scripts/bootstrap/configure-git.sh --profile devbox
./scripts/bootstrap/configure-power.sh --profile personal
./scripts/bootstrap/configure-power.sh --profile devbox
./scripts/bootstrap/configure-spotlight.sh
./scripts/bootstrap/configure-desktop.sh
./scripts/bootstrap/trust-agent-worktrees.sh

configure-power.sh and configure-spotlight.sh are explicit sudo steps for macOS system policy. install.sh should stay user-level. configure-desktop.sh is an explicit owner-profile step for the black devbox desktop, hidden widgets/icons, and Chrome-only Dock. It supports --check and is not applied to other devbox users by install.sh.

Use Bootstrap guide for the ordered personal and devbox flows.

Security audits:

./scripts/audit/repo.sh --skip-mscp
mise run audit:repo
mise run audit:repo:json
mise run audit:mscp
./scripts/audit/host.sh
./scripts/audit/host.sh --json
mise run audit:host
mise run audit:host:json
./scripts/audit/personal.sh
./scripts/audit/personal.sh --json
mise run audit:personal
mise run audit:personal:json

Devbox checks:

./scripts/secrets/configure-infisical-devbox.sh
./scripts/secrets/configure-infisical-devbox-sudo.sh
<concealed-password-command> | ./scripts/secrets/infisical-devbox-sudo-seal.sh
./scripts/secrets/infisical-devbox-run.sh -- <command>
./scripts/secrets/infisical-devbox-sudo.sh -- <non-interactive-command>
./scripts/verify/devbox-services.sh
mise run verify:devbox-services
./scripts/audit/devbox.sh
./scripts/audit/devbox.sh --json
mise run audit:devbox
mise run audit:devbox:json

Before committing script changes:

./scripts/verify/repo.sh