Change Bash-3.00 Prompt

Oliver Fuchs oliverfuchs at onlinehome.de
Sun Dec 19 21:35:51 PST 2004


On Sun, 19 Dec 2004, Adam wrote:

> 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#.

Hi,
I use this in my .bash_profile:

PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ '
export PATH PS1

Oliver
-- 
... don't touch the bang bang fruit


More information about the freebsd-questions mailing list