mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-07-02 12:51:34 +02:00
Compare commits
3 Commits
a148a5a7a4
...
641a124fe3
| Author | SHA1 | Date | |
|---|---|---|---|
| 641a124fe3 | |||
| 71d23fa096 | |||
| 8dde717180 |
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user