From 8f804bcba46d7e151bf0992d224562696d1604ef Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 7 Mar 2026 19:16:34 +0100 Subject: [PATCH] Add automatic-rename settings to tmux configuration --- migrations/1772907198.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 migrations/1772907198.sh diff --git a/migrations/1772907198.sh b/migrations/1772907198.sh new file mode 100644 index 00000000..640d8733 --- /dev/null +++ b/migrations/1772907198.sh @@ -0,0 +1,11 @@ +echo "Add automatic-rename settings to tmux configuration" + +if [[ -f ~/.config/tmux/tmux.conf ]]; then + if ! grep -q "set -gw automatic-rename on" ~/.config/tmux/tmux.conf; then + sed -i '/set -g window-status-separator ""/a\ +set -gw automatic-rename on\ +set -gw automatic-rename-format '\''#{b:pane_current_path}'\'' \ +' ~/.config/tmux/tmux.conf + omarchy-restart-tmux + fi +fi