From owner-freebsd-questions Tue Dec 8 00:10:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA27007 for freebsd-questions-outgoing; Tue, 8 Dec 1998 00:10:46 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (post-11.mail.demon.net [194.217.242.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA27002 for ; Tue, 8 Dec 1998 00:10:45 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.054 #1) id 0znIEA-0005Wg-00; Tue, 8 Dec 1998 08:10:39 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id IAA01904; Tue, 8 Dec 1998 08:10:33 GMT Received: from uk.radan.com (gppsun4) by beavis.uk.radan.com (4.1/SMI-4.1) id AA02116; Tue, 8 Dec 98 08:10:31 GMT Message-Id: <366CDEC0.50A6ACEE@uk.radan.com> Date: Tue, 08 Dec 1998 08:09:36 +0000 From: Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 4.1.3_U1 sun4m) Mime-Version: 1.0 To: Markus Cc: freebsd-questions@FreeBSD.ORG Subject: Re: prompt2 References: <366C3D88.7C67F93E@ucsd.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Markus wrote: > > Hi, > > I've searched hi and low but cannot find any info regarding the prompt > shell variable. I've been attempting to set my prompt as the current > working directory such as: > > /usr/home/marke>% > Here's what I use for csh: alias cd 'cd \!*;set prompt="`hostname`:`pwd`{!}% "' which gives: gppsun4:/users2/radan{8}% The number in ``{}'' being the command number in the history list. You will need to add ``cd'' at the end of your .cshrc file to get the prompt as soon as you start a new shell. HTH > and have it change when the directory is changed. I was going to do an > alias for cd and maybe change the prompt variable or use the second > prompt variable if I knew how to print it as well but couldn't find the > cd executable, I believe it's a system call???, and couldn't find info > on prompt2. Do you know how to do this?? > > Thanks for all the help, I'm learning quickly how fun and powerful > FreeBSD is..... > > -- > ------------------------------------------------------------- > Mark Ennis | > mennis@ucsd.edu | > marke@sparc.sandiegoca.ncr.com | > ------------------------------------------------------------- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Trust the computer industry to shorten Year 2000 to Y2K. It was this thinking that caused the problem in the first place. Mark Ovens, CNC Applications Engineer, Radan Computational Ltd. Bath, Avon, England. Sheet Metal CAD/CAM Solutions mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message