summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChawye Hsu <chawyehsu@hotmail.com>2023-09-06 17:35:41 +0800
committerGitHub <noreply@github.com>2023-09-06 11:35:41 +0200
commitf236cedabb9fc05e8892aca18b79fcc4dee8febf (patch)
treec2d18c92a457327227cc29c2825fe3310b84be15
parentf57c9987be0c6dd93644eaf3cf67545ab2e4ce04 (diff)
fix: correct pwsh completion install script (#325)
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
-rw-r--r--README.md7
-rw-r--r--docs/installation.mdx7
2 files changed, 10 insertions, 4 deletions
diff --git a/README.md b/README.md
index cec7bbf..be45c69 100644
--- a/README.md
+++ b/README.md
@@ -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.