From owner-freebsd-questions Tue Jan 20 22:13:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA17196 for questions-outgoing; Tue, 20 Jan 1998 22:13:48 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from emu.sourcee.com (emu.sourcee.com [199.201.159.173]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA17171 for ; Tue, 20 Jan 1998 22:13:38 -0800 (PST) (envelope-from nrice@emu.sourcee.com) Received: (from nrice@localhost) by emu.sourcee.com (8.8.8/8.8.3) id BAA09246; Wed, 21 Jan 1998 01:13:05 -0500 (EST) Message-ID: <19980121011259.23649@emu.sourcee.com> Date: Wed, 21 Jan 1998 01:12:59 -0500 From: Norman C Rice To: Laszlo Vagner Cc: questions@FreeBSD.ORG Subject: Re: prompt References: <199801210552.XAA03492@mutsgo.dyn.ml.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <199801210552.XAA03492@mutsgo.dyn.ml.org>; from Laszlo Vagner on Tue, Jan 20, 1998 at 11:52:27PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk On Tue, Jan 20, 1998 at 11:52:27PM -0600, Laszlo Vagner wrote: > I have been trying to figure out how to set my prompt for weeks > but i just dont know the syntax. > > if i use the shell sh and i want my prompt to be something like > > hostname currentpath > > > IE: > > dopey /usr/local/etc > > > what do i edit and what do i put in there.??? > > tried various stuff in .login, .cshrc and .profile such as > "`hostname` %l > " > > but it never changes from the $ prompt. > > looking at the handbook nothing seems to work. > > help anyone? export PS1="`hostname` `pwd` > " -- Regards, Norman C. Rice, Jr.