From: fuhrmann@weyl.iaas-berlin.de (FUHRMANN)
Subject: Re: Machine Name in The Title bar???
Date: 11 Oct 1994 13:50:24 GMT [thread overview]
Message-ID: <FUHRMANN.94Oct11145024@weyl.iaas-berlin.de> (raw)
In-Reply-To: ashekhar@lucifer.encore.com's message of Mon, 10 Oct 1994 19:20:11 GMT
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
This is bash/ksh:
newcd()
{
\cd $*
PS1="$PWD>"
if [ "$TERM" = "xterm" ] ;
then
wintitle="`hostname`:$PWD [`ls -ld . | awk '{print $1,$3,$4}'`]"
icntitle=`hostname`:...`basename $PWD`
echo -ne "\033]2;$wintitle\007"
echo -ne "\033]1;$icntitle\007"
fi
}
alias cd newcd
Juergen Fuhrmann
--
Juergen Fuhrmann fuhrmann@iaas-berlin.d400.de
Weierstrass Institute for Applied Analysis and Stochastics (WIAS)
Mohrenstrasse 39 D-10117 Berlin, Germany
phone: (49) 030 20377 560 fax: (49) 030 2004975
* Bad News is No News *
next prev parent reply other threads:[~1994-10-11 13:50 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
1994-10-11 13:50 ` FUHRMANN [this message]
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