Skip to content

setup: install latest bun and omp, add ~/.bun/bin to PATH - #19

Merged
willgriffin merged 3 commits into
mainfrom
feat/bun-omp-setup
Aug 4, 2026
Merged

setup: install latest bun and omp, add ~/.bun/bin to PATH#19
willgriffin merged 3 commits into
mainfrom
feat/bun-omp-setup

Conversation

@willgriffin

Copy link
Copy Markdown
Owner

Summary

  • install.sh gains install_bun: installs latest bun via the bun.sh installer when missing, runs bun upgrade when ~/.bun/bin/bun exists, and reports externally-managed bun (brew/nix) without touching it. NixOS is skipped per the repo contract (prebuilt bun binaries cannot exec there).
  • install.sh gains install_omp: installs or upgrades @oh-my-pi/pi-coding-agent@latest globally via bun into ~/.bun/bin; skipped when bun is unavailable. Both steps are failure-tolerant (no set -e abort) and listed in --dry-run output.
  • zsh/.zshrc replaces the hardcoded /Users/will completions append with a portable BUN_INSTALL block that forces ~/.bun/bin to the front of PATH via zsh's tied path array (deduping inherited occurrences, so a Homebrew bun can no longer shadow it) and sources bun completions from the same root.
  • README documents both tools.

Closes #18

Drive-by fixes

  • install.sh arch optional packages: add unzip (bun's installer requires it; arch was the only supported distro missing it) — commit 924f629

Validation

  • ./install.sh --dry-run — green (lists bun/omp)
  • shellcheck install.sh — clean
  • zsh -n zsh/.zshrc — clean
  • Live shell check: fresh zsh -ic (clean and inherited env) resolves bun and omp to ~/.bun/bin with ~/.bun/bin at PATH head
  • Live upgrade: bun 1.3.14 and omp 17.2.7 confirmed at registry latest
  • Review cycle: security-reviewer clean; reviewer findings (NixOS guard, externally-managed bun message) fixed and verified CORRECT on re-review

The repo's agent-policy.yml was an older compatibility revision, failing
the org-required lifecycle check on every PR. Replace it byte-for-byte
with the canonical compatibility template from the signed policy artifact
ghcr.io/happyvertical/agent-policy@sha256:a19abb22 (policy 1.0.0,
generation 21, source happyvertical/have-config@a61f995c).

Refs #20
install.sh gains install_bun (latest via bun.sh installer or bun upgrade;
NixOS guard per repo contract; externally-managed bun reported and skipped)
and install_omp (@oh-my-pi/pi-coding-agent@latest via bun, skipped when
bun is unavailable). Both are wired into main() and the dry-run listing.

zsh/.zshrc replaces the hardcoded /Users/will completions append with a
portable BUN_INSTALL block that forces ~/.bun/bin to the front of PATH via
zsh's tied path array (deduping inherited occurrences) and sources bun
completions from the same root.

Refs #18
bun's installer (bun.sh) requires unzip on Linux; arch was the only
supported distro whose optional package set omitted it.

Refs #18
@willgriffin
willgriffin merged commit 5c9254c into main Aug 4, 2026
2 checks passed
@willgriffin
willgriffin deleted the feat/bun-omp-setup branch August 4, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

setup: install latest bun and omp, add ~/.bun/bin to PATH

1 participant