From 0b781f10e44f2bd0d69ef7778fe9f20bebac9d57 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Aug 2026 19:38:52 +0000 Subject: [PATCH] Add codexbar cask to installer Co-authored-by: bobbravo2 <348865+bobbravo2@users.noreply.github.com> --- README.md | 1 + install.sh | 9 +++++++++ test/install.bats | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/README.md b/README.md index eb1b200..acc5888 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ The following tools are installed (or skipped if already present): | [`cloc`](https://github.com/AlDanial/cloc) | `brew install cloc` | | [`act`](https://github.com/nektos/act) | `brew install act` | | [Ollama](https://ollama.com) | `curl -fsSL https://ollama.com/install.sh | sh` | +| [Codexbar](https://github.com/steipete/CodexBar) | `brew install --cask steipete/tap/codexbar` | The script is **idempotent** — re-running it is safe and will skip anything already installed. diff --git a/install.sh b/install.sh index d9ca0d0..ed91798 100755 --- a/install.sh +++ b/install.sh @@ -125,6 +125,15 @@ else echo "🦙 Ollama is already running on the Severed Floor." fi + +# 15. Codexbar — menu bar companion for Codex +if ! brew list --cask codexbar &>/dev/null; then + echo "📊 Codexbar has not been stationed at the menu bar. Installing..." + brew install --cask steipete/tap/codexbar +else + echo "📊 Codexbar is already keeping watch from the menu bar." +fi + echo "" echo "✅ Macrodata Refinement environment initialised." echo " The work is mysterious and important. Praise Kier. 🫱" diff --git a/test/install.bats b/test/install.bats index 949de65..4112a52 100644 --- a/test/install.bats +++ b/test/install.bats @@ -369,6 +369,24 @@ EOF [[ "$output" == *"act is already running scenes"* ]] } +@test "installs Codexbar when the cask is not listed" { + run bash "$SCRIPT" + [ "$status" -eq 0 ] + [[ "$output" == *"Codexbar has not been stationed"* ]] +} + +@test "skips Codexbar when the cask is already listed" { + cat > "$MOCK_BIN/brew" <<'EOF' +#!/bin/bash +exit 0 +EOF + chmod +x "$MOCK_BIN/brew" + + run bash "$SCRIPT" + [ "$status" -eq 0 ] + [[ "$output" == *"Codexbar is already keeping watch"* ]] +} + # --------------------------------------------------------------------------- # Ollama section # --------------------------------------------------------------------------- @@ -434,4 +452,5 @@ EOF [[ "$output" == *"cloc is already tallying lines"* ]] [[ "$output" == *"act is already running scenes"* ]] [[ "$output" == *"Ollama is already running"* ]] + [[ "$output" == *"Codexbar is already keeping watch"* ]] }