[Nix-dev] Re: [Nix-commits] SVN commit: nix - 15683 - MarcWeber - nixos/branches/fix-style/etc

Marc Weber marco-oweber at gmx.de
Thu May 21 16:04:53 CEST 2009


On Thu, May 21, 2009 at 03:25:30PM +0200, Nicolas Pierron wrote:
> On Thu, May 21, 2009 at 14:07, Marc Weber <marco-oweber at gmx.de> wrote:
> > Added:
> >   nixos/branches/fix-style/etc/zshenv
> > Modified:
> >   nixos/branches/fix-style/etc/bashrc.sh
> >   nixos/branches/fix-style/etc/default.nix
> 
> Wrong branch ?
> 
> > Modified: nixos/branches/fix-style/etc/bashrc.sh
> > ===================================================================
> > --- nixos/branches/fix-style/etc/bashrc.sh      2009-05-20 17:51:41 UTC (rev 15682)
> > +++ nixos/branches/fix-style/etc/bashrc.sh      2009-05-21 12:07:15 UTC (rev 15683)
> > @@ -1,4 +1,5 @@
> >  # Initialise a bunch of environment variables.
> > +# sync with zshenv
> >  export PATH=/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin
> >  export LD_LIBRARY_PATH=/var/run/opengl-driver/lib
> >  if test -n "@nssModulesPath@"; then
> 
> Why not generating a login-profile.sh loadable & sourced by all
> (standard, not csh) shells?

Thanks. You're right: Wrong branch.

So how should it look like? Use the same source for both?

(etc-targets= [zshenv bashrc])

Or make one source the other?
Eg put . /etc/bashrc into /etc/zshenv

The reason why I added a second file is that I'm not a shell expert. so
I didn't knew exactly which commands can only be used in either shell.

Probably it's not hard to write this little stuff so that both shells
can understand it.

Probably you've also seen my last env hook proposal.
Maybe some of the stuff (eg collecting the INFO and PKG_CONFIG vars)
could / should be done using such a hook.

If someone else can put some thoughts into this as well I'd be glad.

Marc Weber



More information about the nix-dev mailing list