Hi all, Am Freitag, 3. Oktober 2003 19:26 schrieb Joshua Banks: > Did your default Gentoo install act the same. I..E.. when you > login to KDE, GNOME or what ever your using and when you open the > console the bash promt is at its default. > > Example: > bash-2.05b$
AFAIK there are three config files, that are parsed by bash. /etc/profile and ~/.bash_profile are read when bash is started as login shell. ~/.bashrc is read when bash is started as an interactive non-login-shell. Normally, you start kde with /usr/kde/3.1/bin/startkde. When you examine the first line $ head -1 /usr/kde/3.1/bin/startkde #!/bin/sh --login you see, that bash is started a login shell, so /etc/profile is sourced, but on a "dumb" terminal. Let us have a look into this file, you can find some lines which look like if [ "$TERM" != 'dumb' ] && [ -n "$BASH" ] then export PS1='\[\033[01;[EMAIL PROTECTED] \[\033[01;34m\]\W\$\[\033[00m\]' fi Now, PS1 is still not set. After starting a terminal emulation, bash is started not as login shell, so only ~/.bashrc is sourced. This is the correct behaviour, because you logged in with starting kde. Maybe you should define your own PS1 in ~/.bash_profile, which is sources too with starting kde, or change the above mentioned lines to something without [ "$TERM" != 'dumb' ]. Kai -- [EMAIL PROTECTED] mailing list
