Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setting shell prompt in kde
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
WaMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 96

PostPosted: Sun Jul 07, 2002 2:10 am    Post subject: setting shell prompt in kde Reply with quote

I can't seem to change my bash prompt from sh-2.05a$ to what I want. I set the PS1 variable in my .bashrc, but nothing happens. Everything works correctly in a tty session, just not in an xterm. An ideas.

Cheers
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Jul 07, 2002 2:15 am    Post subject: Reply with quote

Are you using xdm/gdm/kdm?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Jul 07, 2002 2:21 am    Post subject: Reply with quote

OK, had to find a link... if you are using kdm to login, check this thread.
Scroll down and look for '9.7. KDE (kdm) does not read my .bash_profile!'
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
WaMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 96

PostPosted: Sun Jul 07, 2002 2:34 am    Post subject: Reply with quote

I already checked out that thread - the suggested soltuion does not work.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Jul 07, 2002 2:35 am    Post subject: Reply with quote

Have you logged out?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1145
Location: Williamsburg Virginia

PostPosted: Sun Jul 07, 2002 6:15 am    Post subject: Reply with quote

courtesy of endoalpha:

"As for the konsole question:
Edit the first line of /usr/kde/3/bin/startkde
from #!/bin/sh
to #!/bin/sh -login
...
/etc/profile will be sourced when kde starts then"
Back to top
View user's profile Send private message
WaMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 96

PostPosted: Sun Jul 07, 2002 2:39 pm    Post subject: Reply with quote

In the end, the only thing hat seems to work is exporting ps1 in /etc/profile.env. Does this make sense??? /etc/profile doesn't seem to run if I'm not root, even after adding the -login bit to /usr/kde/3/bin/startkde.

strange. Thanks for your suggestions.
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sun Jul 07, 2002 2:56 pm    Post subject: Reply with quote

You can try changing this to:
Code:

#!/bin/bash --login

/bin/sh is a symlink to bash that forces bash to behave like sh during start up.
rommel wrote:
courtesy of endoalpha:

"As for the konsole question:
Edit the first line of /usr/kde/3/bin/startkde
from #!/bin/sh
to #!/bin/sh -login
...
/etc/profile will be sourced when kde starts then"
Back to top
View user's profile Send private message
WaMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 96

PostPosted: Tue Jul 09, 2002 1:45 am    Post subject: Reply with quote

still no luck ... thanks, though
Back to top
View user's profile Send private message
thinker5555
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jun 2002
Posts: 77
Location: Texas

PostPosted: Tue Jul 09, 2002 3:16 am    Post subject: Reply with quote

I had the same problem recently. What I did was open up my passwd file, find my user that I was having problems with, and I found that my shell was just listed as "bash" rather than "/bin/bash". So I changed it to /bin/bash, and now my .bashrc file is read when I open a konsole or xterm.


HTH,
Jeremy
Back to top
View user's profile Send private message
Ozymandias
Tux's lil' helper
Tux's lil' helper


Joined: 10 Apr 2002
Posts: 81
Location: Netherlands

PostPosted: Tue Jul 09, 2002 10:20 am    Post subject: Reply with quote

hi,

I use kde, kdm etc, don't have the problem, check
https://forums.gentoo.org/viewtopic.php?t=7429
for my .bashrc and /etc/profile, other than this my gentoo install is quite standard.
greetz Ozy
Back to top
View user's profile Send private message
WaMan
Tux's lil' helper
Tux's lil' helper


Joined: 28 Jun 2002
Posts: 96

PostPosted: Tue Jul 09, 2002 10:38 pm    Post subject: Reply with quote

That's the ticket. Add suffic your user id in /etc/passwd with /bin/bash

had to update my /etc/passwd file so that my user showed up as

user:x:#:#::/home/user:/bin/bash

This has the added benefit of adding your user name to the kde login manager, which I also couldn't figure out how to do.
Back to top
View user's profile Send private message
nyce
n00b
n00b


Joined: 10 Jul 2002
Posts: 7
Location: Accra, Ghana

PostPosted: Wed Jul 10, 2002 9:19 pm    Post subject: make konsole use bash prompt Reply with quote

I had the same problem with my bash prompt not showing properly but I only use konsole. So it won't work for you if you use xterm, rxvt or something else.

With konsole just open up preferences for the konsole icon, go to the execute tab and change the command line to read

konsole --ls %i %m

It doesn't work immediately, you have to quit konsole and start it again a couple of times and you'll get your bash prompt back ...
_________________
I'm a minimalist e-male.
Back to top
View user's profile Send private message
samureye
n00b
n00b


Joined: 11 Jul 2002
Posts: 15

PostPosted: Wed Jul 17, 2002 10:35 pm    Post subject: Reply with quote

I found I had to add a

source /etc/profile

in /usr/kde/3/bin/starkde even after making the change to the

#!/bin/bash --login and konsole --ls %i %m

Seems to work fine now though!

(it may be something to do with the bash-completion package that I emerged, as it won't properly function without a source /etc/profile. bash-completion is worth installing for people who don't know what it is
http://www.caliban.org/bash/index.shtml )
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Wed Jul 17, 2002 11:01 pm    Post subject: Reply with quote

samureye wrote:
bash-completion is worth installing for people who don't know what it is
http://www.caliban.org/bash/index.shtml )


Holy life-savers, batman -- he's not kidding! Not only does the web page itself have lots of nifty bash tips 'n' tricks, ($CDPATH, anyone?) but the bash-completion program mentioned there also rocks!!! If you use bash, you really must check that link out. :)

Samureye -- you really should post a short note in the tips 'n' tricks forum, perhaps with a little more detail about what it does.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
voidzero
Bodhisattva
Bodhisattva


Joined: 21 Jul 2002
Posts: 265
Location: Grnn

PostPosted: Mon Jul 22, 2002 11:51 am    Post subject: Reply with quote

Not Found
The requested URL /bash/index.shtml was not found on this server.

Doesn't work :s
_________________
Diplomacy is the art of letting the other party have things your way.
-- Daniele Vare
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Jul 22, 2002 11:54 am    Post subject: Reply with quote

vocis wrote:
Doesn't work :s


Just tested it myself. Yes it does.

http://www.caliban.org/bash/index.shtml

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum