diff options
author | Chawye Hsu <chawyehsu@hotmail.com> | 2023-09-06 17:35:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 11:35:41 +0200 |
commit | f236cedabb9fc05e8892aca18b79fcc4dee8febf (patch) | |
tree | c2d18c92a457327227cc29c2825fe3310b84be15 | |
parent | f57c9987be0c6dd93644eaf3cf67545ab2e4ce04 (diff) |
fix: correct pwsh completion install script (#325)
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | docs/installation.mdx | 7 |
2 files changed, 10 insertions, 4 deletions
@@ -137,9 +137,12 @@ echo 'eval "$(pixi completion --shell bash)"' >> ~/.bashrc echo 'eval "$(pixi completion --shell zsh)"' >> ~/.zshrc echo 'pixi completion --shell fish | source' >> ~/.config/fish/config.fish echo 'eval (pixi completion --shell elvish | slurp)' >> ~/.elvish/rc.elv +``` + +For PowerShell on Windows: -# On Windows: -Add-Content -Path $PROFILE -Value 'Invoke-Expression (&pixi completion --shell powershell)' +```pwsh +Add-Content -Path $PROFILE -Value '(& pixi completion --shell powershell) | Out-String | Invoke-Expression' ``` And then restart the shell or source the shell config file. diff --git a/docs/installation.mdx b/docs/installation.mdx index 69bd050..9bab707 100644 --- a/docs/installation.mdx +++ b/docs/installation.mdx @@ -92,9 +92,12 @@ echo 'eval "$(pixi completion --shell bash)"' >> ~/.bashrc echo 'eval "$(pixi completion --shell zsh)"' >> ~/.zshrc echo 'pixi completion --shell fish | source' >> ~/.config/fish/config.fish echo 'eval (pixi completion --shell elvish | slurp)' >> ~/.elvish/rc.elv +``` + +For PowerShell on Windows: -# On Windows: -Add-Content -Path $PROFILE -Value 'Invoke-Expression (&pixi completion --shell powershell)' +```pwsh +Add-Content -Path $PROFILE -Value '(& pixi completion --shell powershell) | Out-String | Invoke-Expression' ``` And then restart the shell or source the shell config file. |