Date: Sat, 27 May 2000 22:30:43 -0600 From: "Duke Normandin" <dnormandin@freewwweb.com> To: <freebsd-questions@FreeBSD.org> Subject: sh prompt Message-ID: <001601bfc85d$9b60f680$1fdba7d1@odie>
next in thread | raw e-mail | index | archive | help
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....
-duke
-duke
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?001601bfc85d$9b60f680$1fdba7d1>
