Skip to content

Commit

Permalink
Merge pull request #1623 from matt9ucci/readme-pwsh-compl
Browse files Browse the repository at this point in the history
Add tab completion instructions for PowerShell
  • Loading branch information
nrc authored Feb 26, 2019
2 parents 5cc9e87 + ee95d42 commit 31e9136
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ you are ready to Rust. If you decide Rust isn't your thing, you can
completely remove it from your system by running `rustup self
uninstall`.

#### Enable tab completion for Bash, Fish, or Zsh
#### Enable tab completion for Bash, Fish, Zsh, or PowerShell

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

```
# Bash
Expand All @@ -77,6 +77,11 @@ $ rustup completions fish > ~/.config/fish/completions/rustup.fish
# Zsh
$ rustup completions zsh > ~/.zfunc/_rustup
# PowerShell v5.0+
$ rustup completions powershell >> $PROFILE.CurrentUserCurrentHost
# or
$ rustup completions powershell | Out-String | Invoke-Expression
```

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

0 comments on commit 31e9136

Please sign in to comment.