[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: [K12OSN] a shell Brain teaser -- solved

Thanks for the suggestions. Putting it in .bashrc did the trick. I looked
but couldn't find a place to tell KDE to launch the terminal window as a
login session. Ya learn something new every day...


-----Original Message-----
From: k12osn-admin redhat com [mailto:k12osn-admin redhat com]On Behalf
Of Jamie Briggs
Sent: Monday, July 15, 2002 2:35 PM
To: k12osn redhat com
Subject: Re: [K12OSN] a shell Brain teaser

On Mon, Jul 15, 2002 at 01:59:05PM -0700, Aaron Leininger wrote:
> OK experts...I have a test-station running Slackware 8.1. I know, I know,
> not the friendliest distro out there...I am trying to configure the bash
> prompt so that it is something useful. This is not normally a difficult
> operation but here's what's happening...When I ssh into the slackware box,
> the prompt shows up exactly as I have it configured. However, when I pull
> a terminal window locally(using KDE as my gui), the prompt appears
> differently and I can't get it to show up the way I have it configured in
> /etc/profile. All the docs I have read suggest that /etc/profile is the
> global place where the prompt is set and ~/.bash_profile is the local
> place to add to that profile. I've tried adding the PS1=<my prompt>
> to my .bash_profile file to no avail. What in blue blazes am I missing?
> can't be this hard...Please help!!

/etc/profile or ~/.bash_profile are only read for login shells.  That's
why the prompt works when you log in using ssh.

There are two solutions that I can think of

   1) Put the prompt setting in your .bashrc file.  This should be read
      on every invocation of bash, login or not.  This is what I do.

   2) Tell the KDE terminal app to run as a login shell.  I believe
      the terminal application has a configuration button for that.

- Jamie

K12OSN mailing list
K12OSN redhat com
For more info see <http://www.k12os.org>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]