You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, March 18th 2003, 10:51pm

Konsole not showing colors or directories

Hello,
This is my problem, when I log in to linux ( I use slackware 8.1 with kde 3.1), on the command promt I see who I am and in which directory I am. I also see the files in diferent colors.
However if I startkde, and I go to console the prompt that I got is bash-2.05# and nothing else
When I change directory it doesn't show and all is black and whit and doesn't show my user name.
In my /etc/proflie I have this:

# Set a default shell prompt:
#PS1='`hostname`:`pwd`# '

if [ `id -un` = root ]; then
PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] ';
else
PS1='\[\033[1;33m\]\h:\w\$\[\033[0m\] ';
fi

PS2='> '


------------------------

I guess that kde somehow overrites those settings, any of you have any ideas?


This didn't happen before updating to kde3.1

Any ideas?

Thanks

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Thursday, March 20th 2003, 10:51pm

The shells opened by Konsole are not "login shells"

/etc/profile and ~/.bash_profile are only read by login shells.

If you put the lines into /etc/bash.bashrc or ~/.bashrc it should work.

hth,
_
Qt/KDE Developer
Debian User

3

Friday, March 21st 2003, 7:16am

or you could call konsole with the -ls option:

[code:1]
konsole -ls
[/code:1]

you could change it in the menu too

4

Saturday, March 29th 2003, 8:13pm

I did this change of typing konsole -ls and it worked

Thanks