From 5cebfcc89cd079e3934eedbb1cf1ce99dc8a584c Mon Sep 17 00:00:00 2001 From: Morgan <2504532+mrgnw@users.noreply.github.com> Date: Sat, 7 Sep 2024 01:50:20 +0200 Subject: [PATCH] uv tool for user/global python tools --- python.zsh | 15 --------------- uv.zsh | 7 +++++++ 2 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 python.zsh create mode 100644 uv.zsh diff --git a/python.zsh b/python.zsh deleted file mode 100644 index f7af63a..0000000 --- a/python.zsh +++ /dev/null @@ -1,15 +0,0 @@ -p+() { uv pip install "$@"} -p-() { uv pip uninstall "$@"} - -»(){ - if [ -d .venv ]; then - source .venv/bin/activate - else - echo "\t» ~/.venv" - source ~/.venv/bin/activate - fi -} -«(){ deactivate } - -# allows pip install x[y] -set +o nomatch \ No newline at end of file diff --git a/uv.zsh b/uv.zsh new file mode 100644 index 0000000..b1f511d --- /dev/null +++ b/uv.zsh @@ -0,0 +1,7 @@ +t+(){ uv tool install "$@" } +t»(){ uv tool upgrade "$@" } +t-(){ uv tool remove "$@" } + +# uv autocomplete +eval "$(uv generate-shell-completion zsh)" + -- knotmirror 0.0.1