Bug#397073: konsole: not reading ~/.bashrc
On Mon November 13 2006 03:11, Sune Vuorela wrote:
> On Monday 13 November 2006 05:33, Bruce Sass wrote:
> > > Is it something for konsole to run _instead_ of bash? or?
> >
> > hmmm, ya, sure...
>
> hmm... so you expect konsole to read conffiles for bash when it is
> actually running another shell/program.
That makes little sense to me---Konsole is a fancy x-terminal and should
be doing the equivalent of "bash -c someprogram" with session programs.
> It is not konsole that reads your .bashrc, it is bash that reads it.
Have another look at the output from "env" I sent, it contains:
SHELL=/bin/bash
So, ~/.bashrc should have been read, and it used to work correctly...
> If I remember correct, kde sources entire .kde/env/* when it boots,
> so if you adds a file containing
> #! /bin/bash
>
> if [ -e ~/.bashrc ]
> then
> .bashrc
> fi
>
> you will have your environment vars set in your .bashrc in entire
> kde. Alternatively just set the ones you like
>
> GITPAGER=foo
> SOMEVAR=bar
>
> and add it to a file in .kde/env/
>
> (If you don't have .kde/env/, you can just create it)
...without polluting the environment for all of KDE, or needing to
configure the same thing in multiple places. Your solution is also not
good if one wanted a different environment for sh, bash, etc., where
the same variable may need to take on different values.
- Bruce
Reply to: