if [[ ${_SKIP_VIRTUALENV_INIT-0} != 1 ]]; then

	if [[ -e .python-version ]]; then
		pyenv install -s
	fi

	pyenv exec python3 -m pip install --user pipenv
	pyenv exec python3 -m pipenv sync

	if [[ "$(pyenv exec python3 -m pipenv run which python3)" \
		!= "$(which python3 2>/dev/null)" ]]
	then
		PATH="$(pyenv exec python3 -m pipenv --venv)/bin:$PATH"
		export PATH
	fi

fi
