From 803472b1c9020ce8274f634b4a3d8bbfca22bfb2 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 31 May 2026 05:08:30 +0200 Subject: [PATCH] Zsh/Python: uv now enters venv on init and also sync --- .config/zsh/.zshrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index f03b68b..6c157c1 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -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