mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-06-04 09:01:36 +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
|
if [[ $# -eq 0 ]]; then
|
||||||
command uv venv || return
|
command uv venv || return
|
||||||
|
_auto_venv
|
||||||
if [[ -f ".venv/bin/activate" ]]; then
|
|
||||||
source .venv/bin/activate
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
elif [[ "$1" == "sync" ]]; then
|
||||||
|
shift
|
||||||
|
command uv sync "$@" || return
|
||||||
|
_auto_venv
|
||||||
else
|
else
|
||||||
command uv "$@"
|
command uv "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user