[Nix-dev] [NixOS/nixos] 0f6e9b: Unconditionally add ~/bin to $PATH

Peter Simons simons at cryp.to
Wed Jun 19 15:06:30 CEST 2013


Hi Eelco,

>   Changed paths:
>     M modules/programs/bash/profile.sh
>
>   Log Message:
>   -----------
>   Unconditionally add ~/bin to $PATH

here we go again. :-( I thought we had reached a consensus on this issue
a long time ago?

 | commit 8eca4db54aed5b0969a2f0c56e2736cb3c8a078a
 | Author: Peter Simons <simons at cryp.to>
 | Date:   Sat Dec 31 12:56:45 2011 +0000
 |
 |     /etc/profile: do not add ~/bin to $PATH in system-wide init file
 |
 |     Users who want a user-specific bin directory to override system paths should
 |     configure that in their user-specific ~/.bashrc, not in the system-wide init
 |     file. The global file shouldn't add directories from user homes to $PATH
 |     without knowing whether those actually exist or whether the users even want
 |     them in $PATH. On my system, for example, there is no ~/bin, so I don't want my
 |     $PATH to look for one. Removing an erroneous entry from $PATH is cumbersome,
 |     but adding one is easy, so it feels better to err on the side of caution.

Take care,
Peter



More information about the nix-dev mailing list