For posterity/anyone coming across this in archives, the latest version
of this script is always at
http://micah.cowan.name/hg/wtitle/file/tip/wtitle
Micah Cowan wrote:
> Micah Cowan wrote:
>> So, I recently discovered that if automatic window-renaming is on
>> (default), it's possible for a program's name to influence how the
>> window is rendered in the status bar[...]
>
> Here's a slightly more easily-extensible version of that program,
> written in Python (2.6 or higher; works in 3.x). The values set in the
> attr dictionary work best in 256-color mode.
>
<snip code>
> If you drop it somewhere in your path as "wtitle" (after setting
> executable permissions), and add the following to your ~/.bashrc or
> whatever, then you get some better (IMHO) auto-titling behavior for vim
> and ssh under tmux:
>
> ----------------------------------------------------------------
> if test -n "${TMUX-}" && command -v wtitle >/dev/null 2>&1
> then
> alias vim='wtitle vim'
> alias ssh='wtitle ssh'
> fi
> ----------------------------------------------------------------
>
> Cheers!
>
--
Micah J. Cowan
http://micah.cowan.name/
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users