Skip to content

Commit

Permalink
Merge pull request #1809 from lispy/bash-completion
Browse files Browse the repository at this point in the history
Fix local bash completion directory path
  • Loading branch information
kinnison authored Apr 27, 2019
2 parents 7afe6a8 + 1470f3e commit b149243
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ but the gist is as simple as using one of the following:

```console
# Bash
$ rustup completions bash > ~/.local/share/bash_completion/completions/rustup
$ rustup completions bash > ~/.local/share/bash-completion/completions/rustup

# Bash (macOS/Homebrew)
$ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion
Expand Down
8 changes: 4 additions & 4 deletions src/cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ r"DISCUSSION:
Completion files are commonly stored in `/etc/bash_completion.d/` for
system-wide commands, but can be stored in in
`~/.local/share/bash_completion/completions` for user-specific commands.
`~/.local/share/bash-completion/completions` for user-specific commands.
Run the command:
$ mkdir -p ~/.local/share/bash_completion/completions
$ rustup completions bash >> ~/.local/share/bash_completion/completions/rustup
$ mkdir -p ~/.local/share/bash-completion/completions
$ rustup completions bash >> ~/.local/share/bash-completion/completions/rustup
This installs the completion script. You may have to log out and
log back in to your shell session for the changes to take affect.
Expand Down Expand Up @@ -265,7 +265,7 @@ r"DISCUSSION:
BASH:
$ rustup completions bash cargo >> ~/.local/share/bash_completion/completions/cargo
$ rustup completions bash cargo >> ~/.local/share/bash-completion/completions/cargo
ZSH:
Expand Down

0 comments on commit b149243

Please sign in to comment.