5f7f41975992ac1e21fd91df866b02ddfd4fad65

Author
benzlokzik <121052717+benzlokzik@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(uv): add alias for pinning Python version (#12914)

Diff

 1diff --git a/plugins/uv/README.md b/plugins/uv/README.md
 2index 1b99c1185a28c2c0e8feb746af45d96a4badb51a..144ec456a4a29de5f98d96a4141a5edacc61d984 100644
 3--- a/plugins/uv/README.md
 4+++ b/plugins/uv/README.md
 5@@ -19,6 +19,7 @@ plugins=(... uv)
 6 | uvlu  | `uv lock --upgrade`                                                     | Lock the dependencies to the newest compatible versions              |
 7 | uvp   | `uv pip`                                                                | Manage pip packages                                                  |
 8 | uvpy  | `uv python`                                                             | Manage Python installs                                               |
 9+| uvpp  | `uv python pin`                                                         | Pin the current project to use a specific Python version             |
10 | uvr   | `uv run`                                                                | Run commands within the project's environment                        |
11 | uvrm  | `uv remove`                                                             | Remove packages from the project                                     |
12 | uvs   | `uv sync`                                                               | Sync the environment with the lock file                              |
13diff --git a/plugins/uv/uv.plugin.zsh b/plugins/uv/uv.plugin.zsh
14index abcbc117e71026cfadb3c79c3936cfc18f56a3b6..ef0f78f6b310e6545c669dbe4a2a9263d97c568b 100644
15--- a/plugins/uv/uv.plugin.zsh
16+++ b/plugins/uv/uv.plugin.zsh
17@@ -12,6 +12,7 @@ alias uvlr='uv lock --refresh'
18 alias uvlu='uv lock --upgrade'
19 alias uvp='uv pip'
20 alias uvpy='uv python'
21+alias uvpp='uv python pin'
22 alias uvr='uv run'
23 alias uvrm='uv remove'
24 alias uvs='uv sync'