Add direnv shorthands, minor cleanup
This commit is contained in:
8
.envrc
Normal file
8
.envrc
Normal 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"
|
||||
Reference in New Issue
Block a user