Do you use BASH? Try something like this in your .bashrc: export PROMPT_COMMAND='echo -n "^[]2;`hostname`:`pwd`:`history 1`^G"'
Note that the "^]" and "^G" need to be control characters. With bash + rxvt ( + linux? ), you should get something like this for the title of the rxvt: chris-lap:/home/chris: 6 echo "blackbox rules" I'll leave it as an exercise to the reader to remove the "6" and to add in the pid of the rxvt. :) Gerrit Hoetzel wrote: > bbkeys' menu-cycling feature comes handy when choosing among a huge list of windows. > But as I tend to run several rxvt's with the same title (i.e. "rxvt"), choosing the >right one is a mere guess. What would be nice to solve this is to look upon the >window's child processes and display the last one found or the last common process >found if child-processes fork again. (Use "ps auxfw" or "pstree" to get an idea.) > Or at least an optional feature to display the pid, too. > > Thanks > -- Chris Grossmann web: http://www.grossmann.us