mirror of
https://github.com/joshuadavidthomas/dotfiles.git
synced 2025-12-23 05:36:53 +00:00
seed uv venv and alias uv run
This commit is contained in:
parent
40fb9bddcf
commit
cf91ecbf79
1 changed files with 3 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ layout_uv() {
|
|||
|
||||
if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
|
||||
log_status "No virtual environment exists. Executing \`uv venv\` to create one."
|
||||
uv venv
|
||||
uv venv --seed
|
||||
VIRTUAL_ENV="$(pwd)/.venv"
|
||||
fi
|
||||
|
||||
|
|
@ -18,4 +18,6 @@ layout_uv() {
|
|||
PATH_add "$VIRTUAL_ENV/bin"
|
||||
export UV_ACTIVE=1 # or VENV_ACTIVE=1
|
||||
export VIRTUAL_ENV
|
||||
|
||||
export_alias "uvr" "uv run"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue