File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,14 +311,31 @@ following steps:
311311
312312 $ echo 'eval "$(uv generate-shell-completion bash)"' >> ~/.bashrc
313313 $ echo 'eval "$(uv generate-shell-completion zsh)"' >> ~/.zshrc
314- $ echo 'uv generate-shell-completion fish | source' >> ~/.config/fish/config .fish
314+ $ echo 'uv generate-shell-completion fish | source' > ~/.config/fish/completions/uv .fish
315315 $ echo 'eval (uv generate-shell-completion elvish | slurp)' >> ~/.elvish/rc.elv
316316
317+ .. code-block :: console
318+
319+ $ echo 'eval "$(uvx --generate-shell-completion bash)"' >> ~/.bashrc
320+ $ echo 'eval "$(uvx --generate-shell-completion zsh)"' >> ~/.zshrc
321+ $ echo 'uvx --generate-shell-completion fish | source' > ~/.config/fish/completions/uvx.fish
322+ $ echo 'eval (uvx --generate-shell-completion elvish | slurp)' >> ~/.elvish/rc.elv
323+
317324 .. tab :: Windows
318325
326+
319327 .. code-block :: ps1
320328
329+ if (! (Test-Path - Path $PROFILE )) {
330+ New-Item - ItemType File - Path $PROFILE - Force
331+ }
321332 Add-Content - Path $PROFILE - Value ' (& uv generate-shell-completion powershell) | Out-String | Invoke-Expression'
333+
334+ .. code-block :: ps1
335+
336+ if (! (Test-Path - Path $PROFILE )) {
337+ New-Item - ItemType File - Path $PROFILE - Force
338+ }
322339 Add-Content - Path $PROFILE - Value ' (& uvx --generate-shell-completion powershell) | Out-String | Invoke-Expression'
323340
324341 Then restart the shell or call up ``source `` with your shell configuration file.
You can’t perform that action at this time.
0 commit comments