From: ashekhar@lucifer.encore.com (Ajay Shekhar)
Subject: Re: Machine Name in The Title bar???
Date: Mon, 10 Oct 1994 19:20:11 GMT [thread overview]
Message-ID: <CxH1pp.L4B@encore.com> (raw)
In-Reply-To: 37bpie$8sd@nyx10.cs.du.edu
In article <37bpie$8sd@nyx10.cs.du.edu>, mhatz@nyx10.cs.du.edu (Mike Hatz) writes:
|>
|> 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
Using csh the following works
setenv SHORTNAME `hostname | cut -f1 -d.`
echo -n "^[]2;$SHORTNAME
Actually, I have the working directory displayed too - simple addition
to the above
setenv SHORTNAME `hostname | cut -f1 -d.`
alias cd 'cd \!*; echo -n "^[]2;$SHORTNAME : `pwd`^G"'
Using the fancier perl script "prunepwd" you can "prune" the directory
name too ...
--
Ajay Shekhar
(ashekhar@encore.com)
Disclaimer : Nothing I ever say reflects Encore's opinions ...
next prev parent reply other threads:[~1994-10-10 19:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-10 16:19 Machine Name in The Title bar??? Mike Hatz
1994-10-10 19:20 ` Ajay Shekhar [this message]
1994-10-11 13:50 ` FUHRMANN
1994-10-14 18:48 ` Eric Johnson
1994-10-15 17:16 ` Torbj|rn Lindgren
1994-10-13 14:34 ` John William Chambless
1994-10-13 15:41 ` John William Chambless
1994-10-13 19:27 ` oberman
1994-10-14 6:52 ` Arto V. Viitanen
1994-10-15 10:48 ` Christian Javet
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox