Skip to content

Commit 204176f

Browse files
committed
📝 Update uv autocompletion
1 parent 249c4de commit 204176f

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

docs/libs/install.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ Automatische Shell-Vervollständigung
309309
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
310310

311311
Um die automatische Shell-Vervollständigung für ``uv``-Befehle zu aktivieren,
312-
führt einen der folgenden Schritte aus:
312+
führt jeweils einen der folgenden Schritte aus:
313313

314314
.. tab:: Linux/macOS
315315

@@ -320,14 +320,30 @@ führt einen der folgenden Schritte aus:
320320
321321
$ echo 'eval "$(uv generate-shell-completion bash)"' >> ~/.bashrc
322322
$ echo 'eval "$(uv generate-shell-completion zsh)"' >> ~/.zshrc
323-
$ echo 'uv generate-shell-completion fish | source' >> ~/.config/fish/config.fish
323+
$ echo 'uv generate-shell-completion fish | source' > ~/.config/fish/completions/uv.fish
324324
$ echo 'eval (uv generate-shell-completion elvish | slurp)' >> ~/.elvish/rc.elv
325325
326+
.. code-block:: console
327+
328+
$ echo 'eval "$(uvx --generate-shell-completion bash)"' >> ~/.bashrc
329+
$ echo 'eval "$(uvx --generate-shell-completion zsh)"' >> ~/.zshrc
330+
$ echo 'uvx --generate-shell-completion fish | source' > ~/.config/fish/completions/uvx.fish
331+
$ echo 'eval (uvx --generate-shell-completion elvish | slurp)' >> ~/.elvish/rc.elv
332+
326333
.. tab:: Windows
327334

328335
.. code-block:: ps1
329336
337+
if (!(Test-Path -Path $PROFILE)) {
338+
New-Item -ItemType File -Path $PROFILE -Force
339+
}
330340
Add-Content -Path $PROFILE -Value '(& uv generate-shell-completion powershell) | Out-String | Invoke-Expression'
341+
342+
.. code-block:: ps1
343+
344+
if (!(Test-Path -Path $PROFILE)) {
345+
New-Item -ItemType File -Path $PROFILE -Force
346+
}
331347
Add-Content -Path $PROFILE -Value '(& uvx --generate-shell-completion powershell) | Out-String | Invoke-Expression'
332348
333349
Startet dann die Shell neu oder ruft ``source`` mit eurer

0 commit comments

Comments
 (0)