Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Why every Ghostty tab said 'Claude Code' (and the 30-line zsh hook that fixed it)

DEV Community·Liran Baba·21 days ago
#0rl1nUoo
Reading 0:00
15s threshold

I had four Ghostty tabs open the other morning. Three projects, four tabs, each tab split into two or three panes. Every single tab in the tab bar said Claude Code . I cmd-tabbed three times trying to find the one running tests for claudoscope . By the time I scrolled the panes inside each tab to read a path or a prompt, I'd forgotten what I was looking for in the first place. That's a regression. Tab titles used to mean something. Then everyone started running an AI coding agent in every other pane, and the tab bar quietly turned into visual noise. Here's the Thing Two layers fight for the tab title every time you open a Ghostty tab. Ghostty's shell integration sets it to the running process name ( zsh , claude , node ), and Claude Code emits its own OSC 2 escape sequence to overwrite the title with Claude Code . Turn both off, then drive the title from a 30-line zsh hook that shows the git repo name by default and adds a 👾 marker the moment you launch claude .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More