tmux in OpenBSD (
tmux in the base system of OpenBSD 6.1-beta), and I do some development on Linux hosts.
Whenever I log into a Linux host, it renames the current
tmux window. This is what's displayed in the lower right-hand corner of my
"root@pelleplutt: /hom" 10:51 17-Mar-17
Pressing prefix-W shows the full window name as
(0) 0: ksh93* "root@pelleplutt: /home/ubuntu"
(this is after having logged into an lxc container I'm currently playing around with).
This is the name of the window even after having logged out of the Linux host, and it's a bit annoying that it sticks.
I'd like it to either (automatically) change back to whatever it was set to before logging into the Linux host, or to never change at all.
I've tried to disallow window renaming through using
set-window-option -g allow-rename off set-window-option -g automatic-rename off
.tmux.conf file, but that doesn't seem to prevent whatever it is that sets the window name from doing so.
Any ideas how I may properly disallow window renaming in
tmux doesn't tell the version:
$ command -v tmux /usr/bin/tmux $ tmux -V tmux: unknown option -- V usage: tmux [-2Cluv] [-c shell-command] [-f file] [-L socket-name] [-S socket-path] [command [flags]]
PS1 variable on the Linux host (Ubuntu 16.04 in an lxc container) is set to
allow-rename portion of the
allow-rename [on | off] Allow programs to change the window name using a terminal escape sequence (\ek...\e\\). The default is on.
printf "\ektest\e\\" sets the text which is displayed at the bottom left to
on, but not if it's set to