On Tue, 24 Jul 2012 17:00:29 +0200, "Rickard Nilsson" 
<[email protected]> wrote:
> Hi,
> 
> I want to define system-wide shell aliases. environment.shellInit doesn't  
> help me, since it is only run for login shells, and aliases are not  
> inherited between processes. Essentially, I would like a way to put stuff  
> into /etc/bashrc. Is it wise adding an option to NixOS for doing this  
> (environment.shellSource or something)? Or can it be solved in some other  
> way?

Aliases work across different shells, what about:

/etc/aliasrc
environment.aliasrc

And then adapt the generated config for zsh and bash to include that.

Not sure whether there is a better approach in general.

-- 
Florian Friesdorf <[email protected]>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: [email protected]
IRC: chaoflow on freenode,ircnet,blafasel,OFTC

Attachment: pgpD5jZc7EGtj.pgp
Description: PGP signature

_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to