Subject: Re: Current dir in prompt?
To: None <amiga@NetBSD.ORG>
From: Joern Clausen <joern@TechFak.Uni-Bielefeld.DE>
List: amiga
Date: 12/22/1995 09:48:21
> you wrote in <>:
> > I am using csh as shell, and I can't get the current directory to appear
> > in my prompt.
> Download and compile "tcsh". It's an extended "csh" with lots of nice
> features like filename completion or command line editing.
> After installing "tcsh" (don't forget to add it to "/etc/shells") and
> using "chsh" to change the login shell of your account to "tcsh" try
> this one:
> set prompt = "$USER@${HOST}:%~>"

Besides the fact, that I think it is bad style to convince anybody to
use a different shell, the tcsh has several builtin variables for the
the prompt. Let me quote from the manpage:

             %/  The current working directory.
             %M  The full hostname.
             %m  The hostname up to the first `.'.
             %n  The user name.

and some other more. I usually set the prompt to "%m:%/> ".

     Joern Clausen                  email: joern@TechFak.Uni-Bielefeld.DE