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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users