mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 06:40:25 +01:00
If a VIRTUAL_ENV is already active, use that
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
layout_uv() {
|
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"
|
VIRTUAL_ENV="$(pwd)/.venv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user