# Function to get the absolute path of a file realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" } # Function to setup a venv and activate (will create one if it doesn't exist) use_venv() { uv venv source .venv/bin/activate } # Function to set up a Python virtual environment using uv use_uv() { watch_file uv.lock pyproject.toml dotenv_if_exists source_env_if_exists .envrc.local use venv uv sync }