1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-07-02 12:51:34 +02:00

Compare commits

..

3 Commits

Author SHA1 Message Date
641a124fe3 Zsh: widget for automatic usage of uv with the pip command 2026-05-13 03:19:45 +02:00
71d23fa096 Nvim: Updated dictionaries 2026-05-13 03:18:34 +02:00
8dde717180 Nvim: Updated dictionaries 2026-05-13 01:09:10 +02:00
2 changed files with 21 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ Arrabbiata
Asiahung Asiahung
Aule Aule
Aules Aules
Autoencoder
Babybel Babybel
Baez Baez
Barros Barros
@@ -120,6 +121,7 @@ Kingdoms
Kluge Kluge
KohakuHub KohakuHub
Kratom Kratom
KreativAkademie
Kreyenhop Kreyenhop
Kubitschek Kubitschek
Käte Käte
@@ -239,6 +241,7 @@ Tornow
TrackPoint TrackPoint
Traefik Traefik
UDEV UDEV
UMAP
Umbar Umbar
V1del V1del
VIM VIM
@@ -254,6 +257,7 @@ WinterAkademie
Writhing Writhing
X.Org X.Org
Years Years
Yorma
Ziegeleiweg Ziegeleiweg
Zimin Zimin
and and

View File

@@ -152,9 +152,24 @@ uvshim() {
} }
python() { uvshim python "$@"; } python() { uvshim python "$@"; }
python3() { uvshim python3 "$@"; } python3() { uvshim python3 "$@"; }
pip() { uvshim pip "$@"; }
pytest() { uvshim pytest "$@"; } pip() {
local uv_root
uv_root="$(find_python_root)"
if [[ -n "$uv_root" ]]; then
if [[ "$1" == "install" ]]; then
shift
uv add "$@"
else
uv pip "$@"
fi
else
command pip "$@"
fi
}
_find_venv_upwards() { _find_venv_upwards() {
local dir="$PWD" local dir="$PWD"