Author: chaoflow
Date: Tue Jan  3 17:29:20 2012
New Revision: 31246
URL: https://nixos.org/websvn/nix/?rev=31246&sc=1

Log:
Revert "Revert "add ~/bin to PATH if it exists""

sorry m(

Modified:
   nixos/trunk/modules/programs/bash/profile.sh

Modified: nixos/trunk/modules/programs/bash/profile.sh
==============================================================================
--- nixos/trunk/modules/programs/bash/profile.sh        Tue Jan  3 17:25:24 
2012        (r31245)
+++ nixos/trunk/modules/programs/bash/profile.sh        Tue Jan  3 17:29:20 
2012        (r31246)
@@ -62,6 +62,11 @@
 # The setuid wrappers override other bin directories.
 export PATH=@wrapperDir@:$PATH
 
+# ~/bin if it exists overrides other bin directories.
+if test -d $HOME/bin; then
+    export PATH=$HOME/bin:$PATH
+fi
+
 # Set up the per-user profile.
 mkdir -m 0755 -p $NIX_USER_PROFILE_DIR
 if test "$(stat --printf '%u' $NIX_USER_PROFILE_DIR)" != "$(id -u)"; then
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to