make self-contained using resholve

This commit is contained in:
Arthur Noel 2023-12-14 02:01:10 +00:00
parent 892f1b5f37
commit add18037af
3 changed files with 40 additions and 13 deletions

View file

@ -59,10 +59,6 @@ _nix_direnv_preflight() {
_nix_direnv_fatal '$direnv environment variable was not defined. Was this script run inside direnv?'
fi
if [[ -n ${NIX_BIN_PREFIX:-} ]]; then
PATH_add "$NIX_BIN_PREFIX"
fi
# check command min versions, bash check uses $BASH_VERSION with _require_version
# instead of _require_cmd_version because _require_cmd_version uses =~ operator which
# would be a syntax error on bash < 3