1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-06-04 17:11:35 +02:00

Zsh/Python: uv now enters venv on init and also sync

This commit is contained in:
2026-05-31 05:08:30 +02:00
parent 6e00342044
commit 803472b1c9

View File

@@ -102,12 +102,13 @@ uv() {
if [[ $# -eq 0 ]]; then
command uv venv || return
if [[ -f ".venv/bin/activate" ]]; then
source .venv/bin/activate
fi
_auto_venv
fi
fi
elif [[ "$1" == "sync" ]]; then
shift
command uv sync "$@" || return
_auto_venv
else
command uv "$@"
fi