Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!shelby!agate!ucbvax!ANDREW.CMU.EDU!tpn+ From: tpn+@ANDREW.CMU.EDU (Tom Neuendorffer) Newsgroups: comp.soft-sys.andrew Subject: Re: easy suggestion for EZ Message-ID: Date: 31 Jan 91 17:53:07 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 31 Excerpts from mail: 31-Jan-91 Re: easy suggestion for EZ Anthony Edwards@northsta (611+0) > Looking at your raster of your typescripts begs the question: how do > you get the current working directory in the titlebar of a Typescript > window? I've never seen this before and didn't see any mention of it in > the documentation. I have to plead guilty to this one. Some things aren't documented because they are just such incredible hacks. But some very useful things just aren't possible without such hacks. To get the current directory in the typescript title bar, you can put the following lines in your .cshrc (assuming you use csh). I have run this way for years without problems, except some occasional confusion when running shell script that change directories. Note that the \001 and \002 below have to be replaced with control-A and control-B before this will work. Have fun. Tom N. if ($term == wm) then alias cd 'cd \!* ; set prompt="$cwd:t> "; echo -n \001$cwd\002' alias pushd 'pushd \!* ; set prompt="$cwd:t> "; echo -n \001$cwd\002' alias popd 'popd \!* ; set prompt="$cwd:t> "; echo -n \001$cwd\002' set prompt="$cwd:t> " echo -n \001`pwd`\002 else alias cd 'cd \!* ; set prompt="$cwd:t> "' alias pushd 'pushd \!* ; set prompt="$cwd:t> "' alias popd 'popd \!* ; set prompt="$cwd:t> "' set prompt="$cwd:t> " endif