If PROMPT_COMMAND is set to something which tries to change a window's
title, tmux would happily override the user-supplied pane name even
though set-titles is set to off.
Setting allow-rename to off prevents titles from being set to annoying
stuff like "[root@localhost ~]#" when becoming root on a Red Hat
machine.
Previously "automatic-rename = off" was commented out because
allow-rename overrode it. Having an automatic name based on the current
process is acceptable in case where no explicit title has been set, so
we now set it on.
################################################################################
# Don't update the title bar.
set -g set-titles off
+set -g allow-rename off
+# Allow pane renames if no name was explicitly set.
+set -g automatic-rename on
# Status line black on white.
set -g status-attr none
set -g status-bg white
# Window flags.
setw -g window-status-current-format '[#I.#P#F #W]'
setw -g window-status-format ' #I.#P#F #W '
-# Don't set window name. XXX: Issue with PROMPT_COMMAND.
-#setw -g automatic-rename off