Files
coucou/scripts/test-session-launch.sh
T
Claude 7d65c9a3db Mac: start a Claude Code session from the notch
A new island card (the terminal tab in the header, or ⌃⌥N): pick a project
among the folders your sessions ran in (or any folder), type or dictate what
Claude should do, and Coucou opens your terminal there with claude "<prompt>".
The prompt goes through an environment variable, never into the command line;
the script runs in your login shell and removes itself. Terminal and iTerm2
get a .command file; Ghostty, kitty, WezTerm and Alacritty a new window
running it; Warp and others fall back to Terminal. GitHub build only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LJm3SRL9k3gBPaVtfPhwcT
2026-11-06 12:37:00 +01:00

9 lines
339 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-launch.XXXXXX")"
trap 'rm -rf "$TEST_DIR"' EXIT
swiftc NotchBuddy/Sources/App/LaunchScript.swift NotchBuddy/Sources/App/TerminalTarget.swift \
tests/SessionLaunchTests.swift -o "$TEST_DIR/launch-tests"
"$TEST_DIR/launch-tests"