From owner-freebsd-questions Sat Aug 14 20:13:45 1999 Delivered-To: freebsd-questions@freebsd.org Received: from voyager.bxscience.edu (voyager.bxscience.edu [167.206.32.174]) by hub.freebsd.org (Postfix) with ESMTP id A19AE14E8F for ; Sat, 14 Aug 1999 20:13:43 -0700 (PDT) (envelope-from stuyman@confusion.net) Received: from confusion.net (choates1-bp-57.dartmouth.edu [129.170.46.57]) by voyager.bxscience.edu (8.9.3/8.9.1) with ESMTP id XAA56829; Sat, 14 Aug 1999 23:12:50 -0400 (EDT) Message-ID: <37B62EF1.973F9C57@confusion.net> Date: Sat, 14 Aug 1999 23:07:29 -0400 From: Laurence Berland X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en MIME-Version: 1.0 To: Mark Ovens Cc: Subscriber to freebsd-questions , Kenneth Legg , freebsd-questions@FreeBSD.ORG Subject: Re: Prompt References: <99081410242902.00286@myname.my.domain> <19990815035813.C267@marder-1> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On tcsh i'm using set prompt=("%n@%m:%/ {%!} ") in the .cshrc that gives you username, machine name, directory, and the history number so for example user@foo:/usr/bin {73} I don't know if it works under csh, but it's alot less work than using hostname or pwd or other things like it, tcsh fills in the variables Mark Ovens wrote: > > On Sun, Aug 15, 1999 at 06:54:16AM +0400, Subscriber to freebsd-questions wrote: > > > > > > On Sat, 14 Aug 1999, Kenneth Legg wrote: > > > > > How do you change the prompt to show the current directory? > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > If you use csh or tcsh, type this line in your .cshrc file : > > > > set prompt = "`hostname -s`: %~ > " > > > > This also adds information about hostname (useful thing, when you have > > accounts on several boxes). > > Or add the following alias: > > alias cd 'cd \!*;set prompt="`hostname`:`pwd`{!}% "' > > > Andrew. > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > -- > FreeBSD - The Power To Serve http://www.freebsd.org > My Webpage http://http://ukug.uk.freebsd.org/~mark/ > _______________________________________________________________ > Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK > CAD/CAM solutions for Sheetmetal Working Industry > mailto:mark@ukug.uk.freebsd.org http://www.radan.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message