Re: Change Bash-3.00# Prompt???

2004-12-20 Thread David Landgren
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#.
Edit .bashrc or .bash_profile. Run 'man bash' and look at the FILES section.
David
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Change Bash-3.00# Prompt???

2004-12-20 Thread Alexandr
On Sun, Dec 19, 2004 at 08:38:09PM -0600, 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#.

Adam, you need to change your .profile file.
Variable PS1 has beatifull discribe in man bash

For example I have:
PS1=\u - \A #  ; export PS1

and my promti is 
admin - 16:08 # 
(with space on the end)
for bash#
PS1=bash# ; export PS1
 
 Thanks
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Change Bash-3.00 Prompt

2004-12-19 Thread Greg 'groggy' Lehey
On Sunday, 19 December 2004 at 21:04:35 -0600, 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#.

export PS1=bash# 

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers.


pgpni0UVyII62.pgp
Description: PGP signature


Re: Change Bash-3.00 Prompt

2004-12-19 Thread darren kirby
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 is 
bash# then try:
$ export PS1=bash$ 
to make it permanent, add to (or edit) one of your bash startup files, 
probably /etc/profile for systemwide, or ~/.bashrc for users

I like a bit more info in my prompt, so I use:
PS1=\[\033[0;31m\][$(date +%H:%M)[EMAIL PROTECTED] \W]#\[\033[0m\]

-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972


pgpQXGBbn4X38.pgp
Description: PGP signature


Re: Change Bash-3.00 Prompt

2004-12-19 Thread Oliver Fuchs
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
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]