Resent-Date: Tue, 1 May 2001 13:22:03 -0400 Resent-Message-Id: <200105011722 DOT NAA03068 AT delorie DOT com> Message-Id: <200105011722.NAA03068@delorie.com> Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Mark Paulus" Resent-From: "Mark Paulus" To: "cygwin AT cygwin DOT com" X-Original-To: "jmerz42 AT earthlink DOT net" Date: Tue, 01 May 2001 10:53:38 -0600 Reply-To: "Mark Paulus" X-Mailer: PMMail 2000 Professional (2.10.2010) For Windows 2000 (5.0.2195;1) In-Reply-To: <3AEEE399.8070009@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Re: Who controls window title?? Thanks for this. But, there is slightly cleaner solution that you helped point me to. My PS1 in /etc/profile is set to: export PS1='\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' I added a \h: to the first part of the PS1 string, right before the \w (print working directory). Now my PS1 looks like: export PS1='\[\033]0;\h:\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' Fixes the other small problem where xttitle would set the window title, and then bash's PS1 would re-set it back to just working directory (That's what tipped me back to the PS1 string. I could see xttitle changing the title, and then see it getting re-set back to just the pwd.) On Tue, 01 May 2001 11:26:01 -0500, Jonathon Merz wrote: >Mark Paulus wrote: > >> Hi, >> >> I don't remember having run across this anywhere. However, >> if it has been discussed, I would appreciate pointers to the >> relevant locations.... >> >> Anyway, I have cygwin installed on my Win2K box @ work, >> and as I mentioned in a previous thread, I have cygwin >> installed on my WinME box @ home, with access through >> my DMZ @ home. However, here's my problem. When I >> have windows up for both of them, they usually only have the >> path displayed in the title. So, when I have several windows >> iconized to the task bar, I really don't know which window >> goes to which machine, unless I expand them. Is there a way >> to have the machine name added to the string displayed by >> the window title. I'm not sure if this is a windows thing, or >> a bash/cygwin thing, or a combo of both. Any help/pointers >> would be appreciated. >> >> >> Thanks. >> > >There is a small GPL'd utility that I think will do what you want. It's >called xttitle, you can get it at: > > http://www.jarvis.com/xttitle/ > > The "official" build (ie Makefile) didn't run properly on Cygwin when I >tried it last, but there is only one source file, and it compiled fine with >gcc not using make, so you shouldn't have any trouble. > >I have the following function in my .bashrc: > >function cd_xttitle { > \cd $1 > xttitle.exe $(echo $HOSTNAME:$PWD) >} > >and I have my cd aliased as: > >alias cd='cd_xttitle' > >This will keep the window title to what you are asking for I believe. > >Hope that helps, > >Jon > >-- > > >------------------------------------- > If you had a million Shakespeares, > could they write like a monkey? -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple