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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user