mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 04:30:27 +01:00
If a VIRTUAL_ENV is already active, use that
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user