l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2001 Dec 30 17:02

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
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?


LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!