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 <jadon.brutcher@deltamobile.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
jadonwb
2026-03-07 19:13:18 +01:00
committed by GitHub
co-authored by Copilot Jadon Brutcher
parent df0109369c
commit a261819a9b
2 changed files with 2 additions and 4 deletions
+2
View File
@@ -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"
-4
View File
@@ -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