From owner-freebsd-questions Sun May 28 6:38:10 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mrs-1.smartworld.net (mrs-1-fix.smartworld.net [216.70.64.24]) by hub.freebsd.org (Postfix) with ESMTP id 953F937B513 for ; Sun, 28 May 2000 06:38:06 -0700 (PDT) (envelope-from dnormandin@freewwweb.com) Received: from odie (cust192.tnt1.dial.cal1.uunet.ca [209.167.219.192]) by mrs-1.smartworld.net (8.9.1a/8.9.1) with SMTP id JAA58253; Sun, 28 May 2000 09:37:59 -0400 (EDT) Message-ID: <003f01bfc8aa$4439d6e0$61dba7d1@odie> From: "Duke Normandin" To: "Greg Lehey" Cc: Subject: Re: sh prompt Date: Sun, 28 May 2000 06:40:43 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Saturday, May 27, 2000 10:49 PM Greg Lehey wrote: >On Saturday, 27 May 2000 at 22:30:43 -0600, Duke Normandin wrote: >> I have the following prompt in ~/.shrc: >> >> PS1="[$(tty | cut -c9-11)]:`whoami`.`hostname | sed 's/\..*//'`@"`pwd` >> case `id -u` in >> 0) PS1="${PS1}# ";; >> *) PS1="${PS1}$ ";; >> esac >> >> I want to introduce a ^J or \n in the "case" so that my prompt >> looks like: >> >> blah blah >> $ >> >> Anybody know how to get this to happen? Tia.... > >Just put the \n character in the prompt. > >PS1="${PS1}# > ";; > >You'll presumably use your favourite editor. sheesh.......... I tried what I thought was every permutation & combination, except doing what *I think* you're suggesting, i.e. actually typing in the CRLF. Thanks!! -duke To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message