feat(terminal): align tmux + claude with code.claude.com recommendations#18
Merged
Merged
Conversation
Without these, Claude Code running inside tmux loses Shift+Enter (tmux can't distinguish it from plain Enter) and its desktop notifications + progress bar get swallowed before reaching Ghostty/iTerm2/Kitty. https://code.claude.com/docs/en/terminal-config#configure-tmux Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Ghostty already forwards Claude Code's desktop notification, but a Notification hook adds an audible cue that fires alongside it — useful when the terminal is not in focus. https://code.claude.com/docs/en/terminal-config#play-a-sound-with-a-notification-hook Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Audited the dotfiles against code.claude.com/docs/en/terminal-config. Two gaps, both addressed here:
dot_claude/settings.jsonhad noNotificationhook. Ghostty already forwards Claude Code's desktop notification, but adding an audible cue (Glass.aiff) makes it harder to miss when the terminal is not in focus.Ghostty's
macos-option-as-alt = leftand native Shift+Enter were already correct, so no changes there.Out of scope
Shift+Enterbinding via/terminal-setup: redundant — Alacritty here always launches tmux, so the tmux fix covers it.Test plan
chezmoi diffshows only the additions in this PRchezmoi apply+tmux source-file ~/.config/tmux/tmux.conf:claudeprompt: Shift+Enter inserts a newline (does not submit)Glass.aiffplaystmux show-options -g allow-passthroughreturnsontmux show-options -s extended-keysreturnson🤖 Generated with Claude Code