Mobilizon-Reshare-condividi.../.envrc

31 lines
667 B
Plaintext
Raw Normal View History

2023-01-03 18:55:35 +01:00
if has guix; then
GUIX_PROFILE="${PWD}/.guix-root"
rm -f "$GUIX_PROFILE"
2023-10-10 00:15:27 +02:00
eval "$(guix shell -r "$GUIX_PROFILE" -D -f guix.scm -m manifest.scm --search-paths)"
# Add development scripts to PATH
2023-01-03 18:55:35 +01:00
PATH_add "$(pwd)/scripts"
venv_dir=".venv"
if [ ! -e "$venv_dir/bin/python" ] ; then
rm -rvf "$venv_dir"
pre-commit uninstall
fi
if [ ! -d "$venv_dir" ] ; then
2023-06-10 23:34:12 +02:00
virtualenv -p `which python3` "$venv_dir"
poetry install
pre-commit install
fi
clear
git-cal --author="$(git config user.name)"
cat << EOF
The 'scripts' directory has been added to your PATH: you can now invoke scripts without typing the relative path.
EOF
fi