From 0dc0a1bad6401b7b52cd30e58c99ecb8d89fe9b7 Mon Sep 17 00:00:00 2001 From: Mohaiminus Sakib Date: Tue, 2 Dec 2025 23:30:37 +0100 Subject: [PATCH] added init and python command aliases --- plugins/uv/README.md | 7 ++++++- plugins/uv/uv.plugin.zsh | 9 +++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/plugins/uv/README.md b/plugins/uv/README.md index cf27afc84..fe21a1371 100644 --- a/plugins/uv/README.md +++ b/plugins/uv/README.md @@ -26,4 +26,9 @@ plugins=(... uv) | uvsu | `uv sync --upgrade` | Sync the environment, allowing upgrades and ignoring the lock file | | uvup | `uv self update` | Update the UV tool to the latest version | | uvv | `uv venv` | Manage virtual environments | -| uvt | `uv tree` | Displays the full dependency tree for the current project environment| +| uvtr | `uv tree` | Displays the full dependency tree for the current project environment| +| uvi | `uv init` | Initialize a new project in current workspace and environment. | +| uvinw | `uv init --no-workspace` | Initialize a new project in a new workspace and environment | +| uvpl | `uv python list` | Lists all python version installed | +| uvpi | `uv python install` | Install a specific versino of python | +| uvpp | `uv python pin` | Pin the current project to use a specific Python version. | diff --git a/plugins/uv/uv.plugin.zsh b/plugins/uv/uv.plugin.zsh index 392d96c08..655160e4d 100644 --- a/plugins/uv/uv.plugin.zsh +++ b/plugins/uv/uv.plugin.zsh @@ -19,8 +19,13 @@ alias uvsr='uv sync --refresh' alias uvsu='uv sync --upgrade' alias uvup='uv self update' alias uvv='uv venv' -alias uvt='uv tree' - +alias uvtr='uv tree' +alias uvi='uv install' +alias uvinw='uv install --no-workspace' +alias uvpl='uv python list' +alias uvpi='uv python install' +alias uvpu='uv python uninstall' +alias uvpp='uv python pin' # If the completion file doesn't exist yet, we need to autoload it and # bind it. Otherwise, compinit will have already done that. if [[ ! -f "$ZSH_CACHE_DIR/completions/_uv" ]]; then