Skip to content

Instantly share code, notes, and snippets.

View scarrillo's full-sized avatar
🎯
Focusing

Shawn Carrillo scarrillo

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Sends an OSC 777 notification to the parent Ghostty terminal via tmux passthrough.
# Walks up the process tree to find the TTY since hooks have no controlling terminal.
#
# Completely Based on: https://github.com/recursechat/agent-workflow/blob/main/ghostty-tab-notifications.md
#
# Expanded on by: https://github.com/scarrillo && Claude
# - Tmux support
# - Requires: tmux `set -g allow-passthrough on`
# - You can set and reload Tmux without interrupting your active sessions.