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:
authored and GitHub committed 2026-03-07 19:13:18 +01:00
1 parent df0109369c
commit a261819a9b
2 files changed
+2 -4

No files matched your search

-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