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 missing directory error #1780

Merged
merged 3 commits into from
Apr 21, 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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ $ rustup completions bash > ~/.local/share/bash_completion/completions/rustup
$ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion

# Fish
$ mkdir -p ~/.config/fish/completions
$ rustup completions fish > ~/.config/fish/completions/rustup.fish

# Zsh
Expand Down
3 changes: 3 additions & 0 deletions src/cli/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ r"DISCUSSION:
`~/.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

This installs the completion script. You may have to log out and
Expand All @@ -179,13 +180,15 @@ r"DISCUSSION:
Homebrew stores bash completion files within the Homebrew directory.
With the `bash-completion` brew formula installed, run the command:

$ mkdir -p $(brew --prefix)/etc/bash_completion.d
$ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion

FISH:

Fish completion files are commonly stored in
`$HOME/.config/fish/completions`. Run the command:

$ mkdir -p ~/.config/fish/completions
$ rustup completions fish > ~/.config/fish/completions/rustup.fish

This installs the completion script. You may have to log out and
Expand Down