Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
9 changes: 9 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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. 🫱"
19 changes: 19 additions & 0 deletions test/install.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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"* ]]
}

Comment on lines +372 to +389
# ---------------------------------------------------------------------------
# Ollama section
# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -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"* ]]
}
Loading