From owner-freebsd-chat Wed Jun 18 21:43:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA05389 for chat-outgoing; Wed, 18 Jun 1997 21:43:16 -0700 (PDT) Received: from suntan.tandem.com (suntan.tandem.com [192.216.221.8]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id VAA05384 for ; Wed, 18 Jun 1997 21:43:13 -0700 (PDT) From: Greg Lehey Received: from papillon.lemis.com by suntan.tandem.com (8.6.12/suntan5.970212) id VAA28832; Wed, 18 Jun 1997 21:42:53 -0700 Received: (grog@localhost) by papillon.lemis.com (8.8.4/8.6.12) id MAA00611; Thu, 19 Jun 1997 12:42:33 +0800 (HKT) Message-Id: <199706190442.MAA00611@papillon.lemis.com> Subject: Re: OS/2 users going to FreeBSD? :-) In-Reply-To: <199706190227.LAA24488@genesis.atrad.adelaide.edu.au> from Michael Smith at "Jun 19, 97 11:57:46 am" To: msmith@atrad.adelaide.edu.au (Michael Smith) Date: Thu, 19 Jun 1997 12:42:31 +0800 (HKT) Cc: chat@FreeBSD.ORG (FreeBSD Chat) Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 Reply-to: grog@FreeBSD.ORG (Greg Lehey) WWW-Home-Page: http://www.FreeBSD.org/~grog X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-chat@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Michael Smith writes: > Geir Eivind Mork stands accused of saying: >> But I was using 4os/2 as my primary shell in Os/2, how can I emulate >> it's features (except alias) in BSD (I use the standar shell in >> BSD).. Like the TAB feature, the doskey-alike feature (browse >> previous commands) etc. > > 4os2/4dos/etc inherit heavily from bash/tcsh. Either of these shells > are, in most regards, vastly superior due at least in part to the > environment. > >> And btw; Can I use some sort of macro in the prompt ? Like I did in >> dos/4os? Like the famous $p$g? I haven't figured out something like >> that from the man(uals) > > Here is my prompt (for tcsh), nothing fancy : > > set prompt=`hostname -s`:%~\> Ah. Now I'm going to have to publish mine for bash, too. This is the one you'll see in the FreeBSD book: PS1="=== \u@\h (`tty`) \w \# -> " PS2="\u@\h \w \! ++ " PS1 is used for primary prompts, and PS2 is used for continuations. Greg