Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix local bash completion directory path #1809

Merged
merged 1 commit into from
Apr 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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