[Nix-dev] Defining system-wide shell aliases

Florian Friesdorf flo at chaoflow.net
Tue Jul 24 17:06:53 CEST 2012


On Tue, 24 Jul 2012 17:00:29 +0200, "Rickard Nilsson" <rickard.nilsson at telia.com> 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 <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120724/82137dc7/attachment.bin 


More information about the nix-dev mailing list