On 2004-07-28, Bev A. Kupf <bevakupf DeleteThis @myhome.net> wrote:
>> Unlike you I occasionally make mistakes, which I always freely admit
>> to. What's it like to be perfect Bev?
>
> Go back and read the text of your follow-up to Matt.
Done.
> My response was
> directed at your taking him to task
No one was "taken to task" here. I don't believe the correct answer
to the question "how do I get my preferrred prompt in an xterm" (which
is effectively what the OP wanted to know) is "always run a login
shell". I also don't think it's a good idea to tell someone to do
something relatively arcane (like "add -ls") without explaining why.
I pointed these things out, quite matter of factly.
Now go back and read the text of your followup to mine. Compare and
contrast.
> (or did you forget the tone & content of your follow-up?)
Nope, I didn't. My memory's not the greatest anymore -- witness my
forgetting of the bash startup procedure -- but it's not as bad as all
that. The tone was neutral; the content was flawed in the way you
were so delighted to point out, though not as off the mark as you seem
to want it to be. Fundamentally it was imo the right answer: don't do
this only for login shells. Since bash is not my default shell I
forgot an essential step, which you unintentionally reminded me of:
it's always a good idea to source .bashrc from .profile.
> As for being perfect, I would never claim that - but thank you for
> the compliment.
Thank you for my confirming my suspicions.
Bev and her perfection aside, here's my preferred solution:
- Move the prompt handling from ~/.profile to ~/.bashrc
- Add a line to ~/.profile so that it sources ~/.bashrc
- Run login shells only if you think it's appropriate, and not just
because you happened to put something in .profile which you really
want to apply to all interactive shells.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: How to configure xterm?