Re: .xinitrc has a different environment?

2005-12-16 Thread Simon Geard
On Fri, 2005-12-16 at 16:48 +1100, Lennon Cook wrote: > what I want is a way to move aliases into the exported environment, > so that X has them when it parses .xinitrc, and so that other > processes run from there have it. You can't, since aliases are a feature of the shell itself, and only make

Re: .xinitrc has a different environment?

2005-12-15 Thread Lennon Cook
Randy McMurchy wrote: > You could probably search the archives for my name and ".profile" > and ".bashrc" and discover how I make it so that no matter how > I log in, or su, or whatever, I always have my preferred > environment. The problem isn't that there's non-login shells about - that's solved

Re: .xinitrc has a different environment?

2005-12-15 Thread Lennon Cook
On 12/16/05, Archaic <[EMAIL PROTECTED]> wrote: > Do you need the aliases in anything other than xterm? Yes. I tend to run commands straight from ROX-Filer's shell minibuffer occasionally; also, I would like to be able to use an alias as my Rox download manager (although, it would probably make mor

Re: .xinitrc has a different environment?

2005-12-15 Thread Randy McMurchy
Lennon Cook wrote these words on 12/15/05 19:42 CST: > So, it would seem that a way to 'export' aliases would solve my > problem. *Is* there a way to do this? You could probably search the archives for my name and ".profile" and ".bashrc" and discover how I make it so that no matter how I log in,

Re: .xinitrc has a different environment?

2005-12-15 Thread Archaic
On Fri, Dec 16, 2005 at 12:42:03PM +1100, Lennon Cook wrote: > > So, it would seem that a way to 'export' aliases would solve my > problem. *Is* there a way to do this? Do you need the aliases in anything other than xterm? If not, then create a ~/.Xdefaults file with this: *loginShell:

Re: .xinitrc has a different environment?

2005-12-15 Thread Lennon Cook
I wrote: >[...] Ok, I'm stupid. A small amount of thought and smaller amount of testing has shown that: - Ofcourse .xinitrc has a different environment - it's parsed by a child to my shell, not by my shell itself. - aliases aren't available to child processes (as shown by sour

Re: .xinitrc has a different environment?

2005-12-09 Thread Lennon Cook
I wrote: > also set my CHOICESPATH (used by various ROX apps for locating their > config files) in /etc/profile . Ok, this problem was solved trivially - after some experimenting, I found that I need to set both XDG_CONFIG_HOME and CHOICESPATH. Which leaves the first problem, and means that my as

.xinitrc has a different environment?

2005-12-09 Thread Lennon Cook
I have noticed recently that .xinitrc seems to run with different envvars than those I set in /etc/profile and ~/.profile . I first noticed this when I started using ROX Appdirs in my home dir for some things - I have the following in my ~/.profile to let me use these apps from an xterm: for dir