Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Dec 2004 19:19:51 -0800
From:      darren kirby <bulliver@badcomputer.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Change Bash-3.00 Prompt
Message-ID:  <200412191919.57796.bulliver@badcomputer.org>
In-Reply-To: <003201c4e640$a610a2a0$0200a8c0@PANASONIULSWMR>
References:  <003201c4e640$a610a2a0$0200a8c0@PANASONIULSWMR>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412191919.57796.bulliver>