Re: [vox-tech] persistant aliases under bash?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vox-tech] persistant aliases under bash?
On Tue 27 Mar 01, 12:36 PM, Micah Cowan said:
> On Tue, Mar 27, 2001 at 12:23:12PM -0800, Peter Jay Salzman wrote:
> > On Tue 27 Mar 01, 11:55 AM, Micah Cowan said:
> > >
> > > That's completely non-sequitur. /etc/profile isn't loaded in xterm.
> > > /etc/bashrc is. So try /exactly/ the same trick with /etc/bashrc,
> > > don't bother to source it (but do save it) and open a new xterm.
> >
> > micah, you're causing me to lose my hair. please read carefully.
> >
> > i want my aliases in both console and X. i care more about console since i
> > spend 75% of my time in a non-graphical environment. the few times my
> > computer is in X is mostly playing quake. but i WOULD like my aliases under
> > X as well.
>
> Your turn to read carefully.
>
> Invoking X does not invoke a subshell - when you open an X term, this
> is not a subshell, but an entirely /new/ session (but not a login
> session) - thus sourcing a file before running X has no effect.
> /etc/profile and /etc/.bash_profile never get sourced from an X term
> (unless you do so explicitly.)
ok, fine. so how do you propose to answer my original question?
how do i export aliases to subshells?
> > this is a /rotten/ way of doing things. on an aesthetic level, you've
> > completely demolished the division between startup files for graphical and
> > text environments. ugly.
>
> This is a /standard/ way of doing things.
if it's so standard, why isn't it done by *any* distribution i've ever seen?
> > on another practical level, i define my PATH sparsely under console, and add
> > things like /usr/X11/bin ONLY when i'm in a graphical environment. this
> > speeds up finding executables. so i /like/ the distinction between the
> > graphical and console startup files.
>
> Again, ~/.bashrc wasn't meant to serve this purpose.
i find this hard to believe. where do you get this from?
pete
|