Add direnv shorthands, minor cleanup

This commit is contained in:
2022-02-19 23:04:14 +01:00
parent 64d7031711
commit fc33b9e1ae
2 changed files with 16 additions and 6 deletions

8
.envrc Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
# This file is loaded with `direnv`.
# It enters you into the poetry venv, removing the need for `poetry run`.
poetry run true # create venv if it doesn't exist
export VIRTUAL_ENV=$(poetry env info --path)
export POETRY_ACTIVE=1
PATH_add "$VIRTUAL_ENV/bin"