From owner-freebsd-questions@FreeBSD.ORG Mon Dec 20 03:19:52 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8AC316A4CE for ; Mon, 20 Dec 2004 03:19:52 +0000 (GMT) Received: from badcomputer.org (S01060040f4399d90.ok.shawcable.net [24.66.229.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39DB543D2F for ; Mon, 20 Dec 2004 03:19:52 +0000 (GMT) (envelope-from bulliver@badcomputer.org) Received: from [192.168.0.102] (helo=virgo.badcomputer.org) by badcomputer.org with esmtp (Exim 6.28) id 1CgE5e-0006nb-Bx for freebsd-questions@freebsd.org; Sun, 19 Dec 2004 19:20:06 -0800 From: darren kirby Organization: Badcomputer Org. To: freebsd-questions@freebsd.org Date: Sun, 19 Dec 2004 19:19:51 -0800 User-Agent: KMail/1.7.2 References: <003201c4e640$a610a2a0$0200a8c0@PANASONIULSWMR> In-Reply-To: <003201c4e640$a610a2a0$0200a8c0@PANASONIULSWMR> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1913724.hONXcrQBPQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200412191919.57796.bulliver@badcomputer.org> Subject: Re: Change Bash-3.00 Prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bulliver@badcomputer.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Dec 2004 03:19:53 -0000 --nextPart1913724.hONXcrQBPQ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline quoth the Adam: > I installed bash shell and now my prompt says "bash-3.00#" > > How do I change the text before the #? I'd like it to say bash# instead = of > bash-3.00#. > > Thanks > Bash prompt is created from the env variable "PS1" If really all you want i= s=20 "bash#" then try: $ export PS1=3D"bash$ " to make it permanent, add to (or edit) one of your bash startup files,=20 probably /etc/profile for systemwide, or ~/.bashrc for users I like a bit more info in my prompt, so I use: PS1=3D"\[\033[0;31m\][$(date +%H:%M)][\u@\h \W]#\[\033[0m\]" =2Dd =2D-=20 darren kirby :: Part of the problem since 1976 :: http://badcomputer.org "...the number of UNIX installations has grown to 10, with more expected..." =2D Dennis Ritchie and Ken Thompson, June 1972 --nextPart1913724.hONXcrQBPQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQBBxkTdwPD5Cr/3CJgRAuwwAKC1XiWuMKqcWBD6DbsdUz2P/XPX3gCfc+iM ZAexcwxv59ZvceFqwy1Zbwc= =y2+t -----END PGP SIGNATURE----- --nextPart1913724.hONXcrQBPQ--