FS#11847 - gnome-terminal bash-3.2$ instead of user@computer$

Attached to Project: Arch Linux
Opened by João Vieira (Vieira) - Wednesday, 22 October 2008, 15:37 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 30 October 2008, 21:44 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After updating to gnome 2.24 the gnome-terminal shows a [bash-3.2 $] instead of the usual [user@computer ~] prompt.

Additional info:
* gnome-terminal 2.24.0-1

Steps to reproduce:
* open gnome-terminal
This task depends upon

Closed by  Aaron Griffin (phrakture)
Thursday, 30 October 2008, 21:44 GMT
Reason for closing:  Not a bug
Comment by Roman Kyrylych (Romashka) - Wednesday, 22 October 2008, 16:32 GMT
cannot confirm.
what's in your ~/.bashrc ?
also check gnome-terminal profile settings.
Comment by João Vieira (Vieira) - Wednesday, 22 October 2008, 17:40 GMT
Nothing changed in the files you mentioned. Some users are having the same problem only after update. Please check: http://bbs.archlinux.org/viewtopic.php?pid=438430#p438430
Comment by kostas (cordoban) - Wednesday, 22 October 2008, 17:51 GMT
as you see i have the same problem,but unfortunate i have some others too.
Comment by João Vieira (Vieira) - Thursday, 23 October 2008, 03:26 GMT
Solved by adding:
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
to ~/.bashrc
However shouldn't have happened in the first place as all was woking fine before updating.
Comment by Jan de Groot (JGC) - Thursday, 23 October 2008, 07:56 GMT
gnome-terminal doesn't source /etc/profile, which means that /etc/profile.bash isn't sourced.
You can configure gnome-terminal to use a login shell. it's in the "title and command" tab when you edit the default profile preferences.

Somehow I get a good default shell prompt without $PS1 set, but when I use "su", my output becomes just "bash-3.2#" also.

Loading...