added init and python command aliases

This commit is contained in:
Mohaiminus Sakib 2025-12-02 23:30:37 +01:00
commit 0dc0a1bad6
2 changed files with 13 additions and 3 deletions

View file

@ -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. |

View file

@ -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