You are not logged in.

#1 2010-06-27 13:52:12

57lvii
Member
From: China
Registered: 2010-04-23
Posts: 38

[ Sovled ]tmux's status bar can't change the windows title dynamicly

Hi guys!

tmux's default status bar ,can change the window title dynamicly, when I use some command apps like vim,htop.

but when I change the config file ,it can't do that , I want to know what the default status-left define?

some configs from google all use the #[default] ,but it can't change the title,either!:(

this is my config:

175 #set -g status-left '#[fg=green,bold][#H#[fg=green,bold] #[fg=green,bold]#S]#[fg=yellow,bold]#[default]'
176 #set -g status-right '#[fg=cyan,bold] %m/%d %H:%M#[default]'

thanks for your help!!!:D

Last edited by 57lvii (2010-06-27 14:25:36)


Life is fantastic, we all pray it gives us the plain comfort life, do not tempt us.
But only in the face of difficult choices, we face the real self, we define ourselves !

Offline

#2 2010-06-27 14:16:45

pyknite
Member
Registered: 2010-03-03
Posts: 166

Re: [ Sovled ]tmux's status bar can't change the windows title dynamicly

Hi,

You need to tell tmux to change name automaticly:

set-option -g set-titles on                                                 
set-option -g set-titles-string '#S:#I.#P #W'
set-window-option -g automatic-rename on

Offline

#3 2010-06-27 14:25:00

57lvii
Member
From: China
Registered: 2010-04-23
Posts: 38

Re: [ Sovled ]tmux's status bar can't change the windows title dynamicly

thanks pyknite

set-window-option -g automatic-rename on

this line solve the problem !


Life is fantastic, we all pray it gives us the plain comfort life, do not tempt us.
But only in the face of difficult choices, we face the real self, we define ourselves !

Offline

Board footer

Powered by FluxBB