tmux v1.8 current window name bug?
I'm using tmux v1.8 and it sure seems to be acting odd. The session shows just fine. The ID is fine. The date is fine. But the Window name seems broken to me. Maybe something specific with v1.8? I took two screen shots, one with Ubuntu and one with RHEL 7.1. Same config file used on both. Here is my .tmux.conf
# use UTF8
set -g utf8
set-window-option -g utf8 on
bind r source-file ~/.tmux.conf \; display "Fully Loaded!"
# define window split keys
bind | split-window -h
bind - split-window -v
#set mouse features
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
set-window-option -g mode-keys vi
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# setup Status Line
set -g window-status-format "#I:#W"
set -g window-status-current-format "#I:#W"
set -g automatic-rename on
set -g status-interval 1
# default status bar colors
set-option -g status-bg colour235
set-option -g status-fg colour11
# Default window title colors
set-window-option -g window-status-fg colour240
set-window-option -g window-status-attr dim
# Active window title colors
set-window-option -g window-status-current-fg colour10
set-window-option -g window-status-current-bg colour235
set-window-option -g window-status-current-attr dim
# clock
set-window-option -g status-right " %H:%M %d-%b-%y "
set-window-option -g status-right-fg colour166
# message text
set-option -g message-bg colour235
set-option -g message-fg colour7
## END ##
And I have the two images added as well.
You'll see that in Ubuntu, also running v1.8, I have vim and top running and the status bar reflects this. On rhel I am running vim twice and it shows my user@host.
These settings:
# setup Status Line
set -g window-status-format "#I:#W"
set -g window-status-current-format "#I:#W"
specifically the "#I:#W" should show the Index : Window Name. Can't get it to actually show the Window name.
Attachments
Responses
I would also have tried a new user to rule anything out with ~/.bashrc or similar, good move there. Have you got anything funny in /etc/profile or similar?
You could verify the contents of the setup package (this owns /etc/profile and /etc/bashrc and /etc/inputrc) and the bash package like:
# rpm -V setup
# rpm -V bash
And you could check for additional strange files like:
# for file in /etc/profile.d/*; do echo -n "$file is owned by "; rpm -qf "$file"; done
I just did a quick strace -vfttT -o bash.txt bash to check which files bash opens when it starts, I think this covers all of them.
Yeah printcap is just printers, bash doesn't read that, so no problem there.
You have a few different files to my working system:
$ ls -1 /etc/profile.d/
256term.csh
256term.sh
bash_completion.sh
colorgrep.csh
colorgrep.sh
colorls.csh
colorls.sh
gnome-ssh-askpass.csh
gnome-ssh-askpass.sh
guestfish.sh
lang.csh
lang.sh
less.csh
less.sh
mc.csh
mc.sh
qt-graphicssystem.csh
qt-graphicssystem.sh
vim.csh
vim.sh
vte.sh
which2.csh
which2.sh
so perhaps try moving out the ones which are different, like kde and perl-homedir. Put them in /root/ temporarily, then re-launch a bash window and see if tmux displays properly.
Aha, nice find! :)
You can see from /etc/bashrc that one of those PROMPT_COMMANDs is correct for $TERM=screen and one for $TERM=xterm*, and tmux defaults to reporting as a screen-256color.
I mess around with the TERM variable in my ~/.bashrc so perhaps that's why I didn't see this first.
I tried to reproduce with a plain bashrc and your tmux conf but it still worked fine for me. Strange.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
