From a261819a9bc7e0016aa725d326f55aeeacd4e146 Mon Sep 17 00:00:00 2001 From: jadonwb <158523205+jadonwb@users.noreply.github.com> Date: Sat, 7 Mar 2026 12:13:18 -0600 Subject: [PATCH] Use tmux native method of renaming windows (#4910) * Use tmux native method of renaming windows 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 * Update config/tmux/tmux.conf I agree with the copilot suggestion Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Jadon Brutcher Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- config/tmux/tmux.conf | 2 ++ default/bash/aliases | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index ea6576fb..05ec10e9 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -77,6 +77,8 @@ set -g status-interval 5 set -g status-left-length 30 set -g status-right-length 50 set -g window-status-separator "" +set -gw automatic-rename on +set -gw automatic-rename-format '#{b:pane_current_path}' # Theme set -g status-style "bg=default,fg=default" diff --git a/default/bash/aliases b/default/bash/aliases index 398771ee..667912a8 100644 --- a/default/bash/aliases +++ b/default/bash/aliases @@ -25,10 +25,6 @@ if command -v zoxide &> /dev/null; then printf "\U000F17A9 " pwd fi - - if [[ -n $TMUX ]]; then - tmux rename-window "$(basename "$PWD")" - fi } fi