feat: initial commit
This commit is contained in:
commit
d3259551b2
10 changed files with 866 additions and 0 deletions
18
.envrc
Normal file
18
.envrc
Normal file
|
@ -0,0 +1,18 @@
|
|||
layout_uv() {
|
||||
if [[ -d ".venv" ]]; then
|
||||
VIRTUAL_ENV="$(pwd)/.venv"
|
||||
fi
|
||||
|
||||
if [[ -z $VIRTUAL_ENV || ! -d $VIRTUAL_ENV ]]; then
|
||||
log_status "No uv project exists. Executing \`uv init\` to create one."
|
||||
uv init
|
||||
uv venv
|
||||
VIRTUAL_ENV="$(pwd)/.venv"
|
||||
fi
|
||||
|
||||
export PATH=$PATH":$VIRTUAL_ENV/bin"
|
||||
export UV_ACTIVE=1 # or VENV_ACTIVE=1
|
||||
export VIRTUAL_ENV
|
||||
}
|
||||
|
||||
layout_uv
|
Loading…
Add table
Add a link
Reference in a new issue