From b4765401af3a09d412e0435a7c97dc07c2f70b02 Mon Sep 17 00:00:00 2001 From: Florian Friesdorf Date: Tue, 3 Jan 2012 14:36:05 +0000 Subject: [PATCH] add ~/bin to PATH if it exists svn path=/nixos/trunk/; revision=31235 --- modules/programs/bash/profile.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/programs/bash/profile.sh b/modules/programs/bash/profile.sh index 91f6007c0fe..7fc17d92841 100644 --- a/modules/programs/bash/profile.sh +++ b/modules/programs/bash/profile.sh @@ -62,6 +62,11 @@ export ASPELL_CONF="dict-dir $HOME/.nix-profile/lib/aspell" # 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