Skip to content

rename tmux pane to running command where possible#4936

Open
fayimora wants to merge 2 commits intobasecamp:devfrom
fayimora:fayi/tmux-pane-rename
Open

rename tmux pane to running command where possible#4936
fayimora wants to merge 2 commits intobasecamp:devfrom
fayimora:fayi/tmux-pane-rename

Conversation

@fayimora
Copy link
Copy Markdown

@fayimora fayimora commented Mar 8, 2026

#4910 broke my tmux, and here's a "fix". I think this is a "better" solution.

if pane command is a shell -> show current dir name, otherwise -> show running command name

if pane command is a shell -> show current dir name
otherwise -> show running command name
Copilot AI review requested due to automatic review settings March 8, 2026 20:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates tmux window automatic renaming to display a more informative name: when the pane is running an interactive shell, show the current directory name; otherwise show the running command.

Changes:

  • Replace automatic-rename-format to conditionally choose between pane_current_path basename and pane_current_command.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config/tmux/tmux.conf Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 8, 2026 20:39
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config/tmux/tmux.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants