Revert "Revert "add ~/bin to PATH if it exists""
sorry m( svn path=/nixos/trunk/; revision=31246
This commit is contained in:
parent
68e9f2e09b
commit
66f82c043e
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue