From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,ffb0fb48546947c4 X-Google-Attributes: gid103734,public X-Google-Thread: fee84,ffb0fb48546947c4 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-15 04:16:47 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!epflnews!dinews.epfl.ch!javet From: javet@di.epfl.ch (Christian Javet) Newsgroups: comp.windows.x,comp.unix.osf.osf1 Subject: Re: Machine Name in The Title bar??? Date: 15 Oct 1994 10:48:21 GMT Organization: Ecole Polytechnique Federale de Lausanne Message-ID: <37oc1l$3dq@disunms.epfl.ch> References: <37bpie$8sd@nyx10.cs.du.edu> NNTP-Posting-Host: didec17.epfl.ch Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Keywords: X11, title Xref: bga.com comp.windows.x:12636 comp.unix.osf.osf1:4065 In article <37bpie$8sd@nyx10.cs.du.edu>, Mike Hatz wrote: %% %% Is there a script someone could send along or give a hint for a hack that %% displays the machine name you are logged into in the window title? %% %% The box I am on is a DEC3000 running osf1. %% %% Thanks! %% %% Mike Hello !! If you are using tcsh, change the prompt of you xterm. Add the following lines in your .cshrc file: if ( $?term ) then if ( "$term" == 'xterm' ) then set prompt = '%{\033]0;%m - %~\007%}%B %~ >%b ' else set prompt = '%m - %~ %# ' endif else set prompt = '%m - %~ %# ' endif (Note: you could add a test for testing the shell (this doesn't work under csh!)) If you put this on all the .cshrc you have (I mean all machines) it will be nice to see the hostname and path in all your xterm (even when iconified) and the titlebar change when you cd in another directory. Try it ! Chris. ################################################################### # Christian Javet # (e-mail) javet@di.epfl.ch # # Chemin des Vignerons 9 # -------------------------------- # # 1807 - BLONAY # WWW home page: # # (021) 943 19 66 # http://diwww.epfl.ch/~javet/ # ###################################################################