1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 10:00:27 +01:00

If a VIRTUAL_ENV is already active, use that

This commit is contained in:
2026-01-04 14:02:49 +01:00
parent cfd4a1d8e1
commit c27a9e6ae3

View File

@@ -1,5 +1,6 @@
layout_uv() {
if [[ -d ".venv" ]]; then
if [[ -z "$VIRTUAL_ENV" && -d ".venv" ]]; then
# No explicit VIRTUAL_ENV was exported, and a .venv dir exists, use that
VIRTUAL_ENV="$(pwd)/.venv"
fi