LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash (https://www.linuxquestions.org/questions/linux-newbie-8/bash-131171/)

Mikessu 01-03-2004 12:23 PM

bash
 
I have installed and tested a lot of different distros but now my bash setting are incorrect. When I start Konsole, I see text: "bash-2.05b$"

When I su root I see text: "[root@localhost /]#"

How can I set (or reset) settings of my normal user account to look same like root.

Demonbane 01-03-2004 12:31 PM

right click on the konsole shortcut, add --ls to the konsole command
Code:

konsole --ls
this way /etc/profile gets sourced

Mikessu 01-03-2004 02:41 PM

This didnt help :(

mikshaw 01-03-2004 03:50 PM

Google for "bashprompt" and you'll find a wealth of information about making the prompt exactly how you want it

Demonbane 01-03-2004 05:04 PM

If you just want the standard "user@host current working directory$" prompt either add this to either ~/.bash_profile or /etc/profile(system wide)
Code:

export PS1='[\u@\h \W]\$ '
note that you still need to invoke konsole with --ls in order for these files to get sourced.


All times are GMT -5. The time now is 01:09 AM.