Skip to content

Commit 31e9136

Browse files
authored
Merge pull request #1623 from matt9ucci/readme-pwsh-compl
Add tab completion instructions for PowerShell
2 parents 5cc9e87 + ee95d42 commit 31e9136

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ you are ready to Rust. If you decide Rust isn't your thing, you can
5959
completely remove it from your system by running `rustup self
6060
uninstall`.
6161

62-
#### Enable tab completion for Bash, Fish, or Zsh
62+
#### Enable tab completion for Bash, Fish, Zsh, or PowerShell
6363

6464
`rustup` now supports generating completion scripts for Bash, Fish,
65-
and Zsh. See `rustup help completions` for full details, but the
66-
gist is as simple as using one of the following:
65+
Zsh, and PowerShell. See `rustup help completions` for full details,
66+
but the gist is as simple as using one of the following:
6767

6868
```
6969
# Bash
@@ -77,6 +77,11 @@ $ rustup completions fish > ~/.config/fish/completions/rustup.fish
7777
7878
# Zsh
7979
$ rustup completions zsh > ~/.zfunc/_rustup
80+
81+
# PowerShell v5.0+
82+
$ rustup completions powershell >> $PROFILE.CurrentUserCurrentHost
83+
# or
84+
$ rustup completions powershell | Out-String | Invoke-Expression
8085
```
8186

8287
*Note:* you may need to restart your shell in order for the changes to take

0 commit comments

Comments
 (0)