From owner-freebsd-questions Mon Dec 7 20:47:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA08552 for freebsd-questions-outgoing; Mon, 7 Dec 1998 20:47:09 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA08537 for ; Mon, 7 Dec 1998 20:47:06 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id PAA00223; Tue, 8 Dec 1998 15:16:54 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.1/8.9.0) id PAA15233; Tue, 8 Dec 1998 15:16:54 +1030 (CST) Message-ID: <19981208151654.S12688@freebie.lemis.com> Date: Tue, 8 Dec 1998 15:16:54 +1030 From: Greg Lehey To: Markus , freebsd-questions@FreeBSD.ORG Subject: Re: prompt2 References: <366C3D88.7C67F93E@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <366C3D88.7C67F93E@ucsd.edu>; from Markus on Mon, Dec 07, 1998 at 08:41:44PM +0000 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 7 December 1998 at 20:41:44 +0000, 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>% > > 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???, No, it's not a system call. > and couldn't find info on prompt2. Do you know how to do this?? It depends on your shell, which you haven't mentioned. Take a look at the man page for your shell. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message