From owner-freebsd-questions Sat May 27 21:49: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id A093A37B626 for ; Sat, 27 May 2000 21:49:01 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id OAA16359; Sun, 28 May 2000 14:18:30 +0930 (CST) (envelope-from grog) Date: Sun, 28 May 2000 14:18:30 +0930 From: Greg Lehey To: Duke Normandin Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sh prompt Message-ID: <20000528141830.C15565@wantadilla.lemis.com> References: <001601bfc85d$9b60f680$1fdba7d1@odie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <001601bfc85d$9b60f680$1fdba7d1@odie> Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message