Add automatic-rename settings to tmux configuration

This commit is contained in:
David Heinemeier Hansson committed 2026-03-07 19:16:34 +01:00
1 parent a261819a9b
commit 8f804bcba4
1 file changed
+11
+11
View File
@@ -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