feat(zellij,ssh): set tmux default mode, detach on close, and fix TERM over SSH - #164
Merged
Merged
Conversation
- Set default_mode to tmux so bindings are active immediately - Set on_force_close to detach to match tmux behavior - Disable copy_on_select to avoid clipboard clobber on selection - Increase scrollback_lines to 50000 - Add SetEnv TERM=xterm-256color in ~/.ssh/config to prevent unknown terminal errors on remote hosts that lack xterm-ghostty terminfo Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
bdossantos
August 28, 2026 10:01
View session
bdossantos
marked this pull request as ready for review
August 28, 2026 10:01
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The initial Zellij mode intercepts shell input, and the scrollback option is invalid.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds tmux-oriented Zellij defaults and improves SSH terminal compatibility.
Changes:
- Configures Zellij startup, detachment, clipboard, and scrollback behavior.
- Forces a broadly supported terminal type over SSH.
File summaries
| File | Description |
|---|---|
.ssh/config |
Sets the remote SSH terminal type. |
.config/zellij/config.kdl |
Adds Zellij behavior defaults. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 2
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: bdossantos <245284+bdossantos@users.noreply.github.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.
Zellij config lacked sensible defaults for tmux-style usage, and connecting to remote Linux hosts from Ghostty caused
unknown terminal typeerrors becausexterm-ghosttyterminfo is absent on most remote systems.Zellij (
.config/zellij/config.kdl)default_mode "tmux"— tmux bindings active immediately, no need to pressCtrl afirston_force_close "detach"— closing the terminal window detaches the session instead of killing itcopy_on_select false— text selection no longer clobbers the clipboardscrollback_lines 50000— bumped from the 10k defaultSSH (
.ssh/config)SetEnv TERM=xterm-256colorunderHost *— overrides the client-sideTERM(e.g.xterm-ghostty) before it reaches the remote, ensuring ncurses-based tools (vim,less,git log) work on any host without requiring terminfo installation