Date: Sun, 28 May 2000 14:18:30 +0930 From: Greg Lehey <grog@lemis.com> To: Duke Normandin <dnormandin@freewwweb.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sh prompt Message-ID: <20000528141830.C15565@wantadilla.lemis.com> In-Reply-To: <001601bfc85d$9b60f680$1fdba7d1@odie> References: <001601bfc85d$9b60f680$1fdba7d1@odie>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000528141830.C15565>