Skip to content

Commit

Permalink
nix-profile.sh: remove sbin from PATH
Browse files Browse the repository at this point in the history
sbin is a symlink to bin. 
profiles only contains packages, which have this symlink. 
It is a subset of bin.

related to NixOS/nixpkgs#25550
  • Loading branch information
Mic92 committed May 7, 2017
1 parent bb50c89 commit 542fe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/nix-profile.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ if [ -n "$HOME" ] && [ -n "$USER" ]; then
export MANPATH="$NIX_LINK/share/man:$MANPATH"
fi

export PATH="$NIX_LINK/bin:$NIX_LINK/sbin:$__savedpath"
export PATH="$NIX_LINK/bin:$__savedpath"
unset __savedpath NIX_LINK NIX_USER_PROFILE_DIR NIX_PROFILES
fi

0 comments on commit 542fe0d

Please sign in to comment.