From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ffb0fb48546947c4 X-Google-Attributes: gidfee84,public X-Google-Thread: 103734,ffb0fb48546947c4 X-Google-Attributes: gid103734,public X-Google-ArrivalTime: 1994-10-15 10:18:41 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!sunic!news.chalmers.se!cd.chalmers.se!tl From: tl@cd.chalmers.se (Torbj|rn Lindgren) Newsgroups: comp.windows.x,comp.unix.osf.osf1 Subject: Re: Machine Name in The Title bar??? Date: 15 Oct 1994 17:16:08 GMT Organization: Chalmers Computer Society Message-ID: <37p2oo$7ih@nyheter.chalmers.se> References: <37bpie$8sd@nyx10.cs.du.edu> <1994Oct14.184835.9098@camax.com> NNTP-Posting-Host: haddock.cd.chalmers.se Xref: bga.com comp.windows.x:12643 comp.unix.osf.osf1:4069 In article <1994Oct14.184835.9098@camax.com>, Eric Johnson wrote: >alias xcd 'cd \!* ; echo -n "^[]2;`whoami` @ `hostname` `pwd` ^G"' [...] >With this, I can use `xcd' in place of `cd'. It places the >current username, hostname and directory in the window title >bar (using xterm windows). Is anyone still using csh? I thought everone had switched to tcsh long ago ;-) tcsh invokes the alias cwdcmd when the working directory is changed (if that alias exists). This makes it trivial to change the title-bar when the working directory is changed. I uses alias cwdcmd echo -n '"]1;${HOST}]2;${HOST}:`dirs`"' This changes both the title and the icon-name.