View previous topic :: View next topic |
Author |
Message |
WaMan Tux's lil' helper
Joined: 28 Jun 2002 Posts: 96
|
Posted: Sun Jul 07, 2002 2:10 am Post subject: setting shell prompt in kde |
|
|
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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jul 07, 2002 2:15 am Post subject: |
|
|
Are you using xdm/gdm/kdm? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jul 07, 2002 2:21 am Post subject: |
|
|
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 |
|
|
WaMan Tux's lil' helper
Joined: 28 Jun 2002 Posts: 96
|
Posted: Sun Jul 07, 2002 2:34 am Post subject: |
|
|
I already checked out that thread - the suggested soltuion does not work. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jul 07, 2002 2:35 am Post subject: |
|
|
Have you logged out? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Sun Jul 07, 2002 6:15 am Post subject: |
|
|
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 |
|
|
WaMan Tux's lil' helper
Joined: 28 Jun 2002 Posts: 96
|
Posted: Sun Jul 07, 2002 2:39 pm Post subject: |
|
|
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 |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Jul 07, 2002 2:56 pm Post subject: |
|
|
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 |
|
|
WaMan Tux's lil' helper
Joined: 28 Jun 2002 Posts: 96
|
Posted: Tue Jul 09, 2002 1:45 am Post subject: |
|
|
still no luck ... thanks, though |
|
Back to top |
|
|
thinker5555 Tux's lil' helper
Joined: 03 Jun 2002 Posts: 77 Location: Texas
|
Posted: Tue Jul 09, 2002 3:16 am Post subject: |
|
|
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 |
|
|
Ozymandias Tux's lil' helper
Joined: 10 Apr 2002 Posts: 81 Location: Netherlands
|
Posted: Tue Jul 09, 2002 10:20 am Post subject: |
|
|
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 |
|
|
WaMan Tux's lil' helper
Joined: 28 Jun 2002 Posts: 96
|
Posted: Tue Jul 09, 2002 10:38 pm Post subject: |
|
|
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 |
|
|
nyce n00b
Joined: 10 Jul 2002 Posts: 7 Location: Accra, Ghana
|
Posted: Wed Jul 10, 2002 9:19 pm Post subject: make konsole use bash prompt |
|
|
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 |
|
|
samureye n00b
Joined: 11 Jul 2002 Posts: 15
|
Posted: Wed Jul 17, 2002 10:35 pm Post subject: |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Wed Jul 17, 2002 11:01 pm Post subject: |
|
|
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 |
|
|
voidzero Bodhisattva
Joined: 21 Jul 2002 Posts: 265 Location: Grnn
|
Posted: Mon Jul 22, 2002 11:51 am Post subject: |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Jul 22, 2002 11:54 am Post subject: |
|
|
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 |
|
|
|