Path: utzoo!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!mips!sdd.hp.com!news.cs.indiana.edu!noose.ecn.purdue.edu!en.ecn.purdue.edu!davis From: davis@en.ecn.purdue.edu (E Robert Davis) Newsgroups: comp.sys.next Subject: Re: tcsh Message-ID: <1991Mar14.074832.13805@en.ecn.purdue.edu> Date: 14 Mar 91 07:48:32 GMT References: <1991Mar12.072203.12123@nntp-server.caltech.edu> <1991Mar12.162045.10918@math.ucla.edu> <1991Mar14.051506.1851@midway.uchicago.edu> Organization: Purdue University Engineering Computer Network Lines: 24 In article <1991Mar14.051506.1851@midway.uchicago.edu> paul@zaphod.uchicago.edu (Paul Burchard) writes: > >One of the tcsh features NeXT-csh doesn't support is a rich >prompt---one of my favorites. For example, I put the current >directory (as well as my current host) into my prompt, which really helps >when I'm jumping around directories and machines. (A command-line >emulation of the Browser, if you like. :-) > Actually, you can do this with csh. Just put something like this in you .cshrc: alias cd 'chdir \!* ; set prompt="[$cwd] "' cd ## note: this sets initial prompt to $HOME You could stick your host in there ($host) or the current command (for reference with the history command) etc. >----------------------------------------------------------------------------- >Paul Burchard >``I'm still trying to learn how to count backwards from infinity...'' >----------------------------------------------------------------------------- Robert