This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |