Skip to content

Use tmux native method of renaming windows#4910

Merged
dhh merged 2 commits intobasecamp:devfrom
jadonwb:dev
Mar 7, 2026
Merged

Use tmux native method of renaming windows#4910
dhh merged 2 commits intobasecamp:devfrom
jadonwb:dev

Conversation

@jadonwb
Copy link
Contributor

@jadonwb jadonwb commented Mar 5, 2026

This uses tmux's built in method of renaming windows, and it even works with pane switching rather than relying on cd to change the window name

Feel free to edit this however you like, this is just an example of how it can be done with tmux natively.

This uses tmux's built in method of renaming windows, and it even works
with pane switching rather than relying on cd to change the window name
Copilot AI review requested due to automatic review settings March 5, 2026 20:05
Copy link
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

Switches tmux window naming from a shell-hook-based rename (tmux rename-window on directory change) to tmux’s built-in automatic renaming based on the active pane’s current path.

Changes:

  • Removed the zoxide hook that renamed tmux windows on cd
  • Enabled tmux automatic window renaming
  • Set the rename format to the (base name of) the active pane’s current path

Reviewed changes

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

File Description
default/bash/aliases Removes manual tmux rename-window behavior from the zoxide hook.
config/tmux/tmux.conf Enables tmux automatic-rename and sets the rename format to the pane’s current path.

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

I agree with the copilot suggestion

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 5, 2026 20:12
Copy link
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 2 out of 2 changed files in this pull request and generated 1 comment.


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

@dhh dhh merged commit a261819 into basecamp:dev Mar 7, 2026
@dhh dhh mentioned this pull request Mar 7, 2026
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.

4 participants