alpha
Login
or
Join now
xcc.es
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles
shell
zinit
zsh
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
uv autocomplete
author
Morgan
date
1 year ago
(Feb 5, 2025, 1:43 AM +0100)
commit
31faab81
31faab81fdae0cce28b4919a5eb868ce93999005
parent
d5ff4930
d5ff4930f6eec1a2830a1ad7b1856313fd09bb5a
+15
1 changed file
Expand all
Collapse all
Unified
Split
uv.zsh
+15
uv.zsh
View file
Reviewed
···
8
8
# uv autocomplete
9
9
eval "$(uv generate-shell-completion zsh)"
10
10
11
11
+
_uv_run_mod() {
12
12
+
if [[ "$words[2]" == "run" && "$words[CURRENT]" != -* ]]; then
13
13
+
local venv_binaries
14
14
+
if [[ -d .venv/bin ]]; then
15
15
+
venv_binaries=( ${(@f)"$(_call_program files ls -1 .venv/bin 2>/dev/null)"} )
16
16
+
fi
17
17
+
18
18
+
_alternative \
19
19
+
'files:filename:_files' \
20
20
+
"binaries:venv binary:(($venv_binaries))"
21
21
+
else
22
22
+
_uv "$@"
23
23
+
fi
24
24
+
}
25
25
+
compdef _uv_run_mod uv