Have zsh set the window title (NOT its name) with the escape sequence in the man page (look for printf) and then just put #T in set-titles-string.
On Thu, Mar 24, 2011 at 07:35:21PM -0700, kevin beckford wrote: > I would like my zsh vcs_info_msg_ to appear in the xterm titlebar. > Currently it appears in the status line. > the code in question for the window status: > > # set xterm window status. This is where we need git status! > set-option -g set-titles on > #set-option -g set-titles-string '#H ###I.#P #W (#S)' > set-option -g set-titles-string '#{vcs_info_msg_0_}' > > it works when tmux is not active, but I also have this: > > # Run this before displaying the prompt > case $TERM in > xterm*|screen) # or tmux ;) > #precmd () {} > precmd () {vcs_info; print -Pn "\e]0;${vcs_info_msg_0_}\a"} > ;; > esac > > In my .zshrc. > > I guess what I'm looking for is how to get the variable > ${vcs_info_mg_0_} into the xterm title bar, using tmux. > > ------------------------------------------------------------------------------ > Enable your software for Intel(R) Active Management Technology to meet the > growing manageability and security demands of your customers. Businesses > are taking advantage of Intel(R) vPro (TM) technology - will your software > be a part of the solution? Download the Intel(R) Manageability Checker > today! http://p.sf.net/sfu/intel-dev2devmar > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users