Skip to content

Commit a1f3bd9

Browse files
committed
help: Update completions help to include mkdirs
In order to ensure that people have the completions directory in existence before trying to write to it, include `mkdir -p` commands in the completions help. Signed-off-by: Daniel Silverstone <[email protected]>
1 parent 772c291 commit a1f3bd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cli/help.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ r"DISCUSSION:
169169
`~/.local/share/bash_completion/completions` for user-specific commands.
170170
Run the command:
171171
172+
$ mkdir -p ~/.local/share/bash_completion/completions
172173
$ rustup completions bash >> ~/.local/share/bash_completion/completions/rustup
173174
174175
This installs the completion script. You may have to log out and
@@ -179,13 +180,15 @@ r"DISCUSSION:
179180
Homebrew stores bash completion files within the Homebrew directory.
180181
With the `bash-completion` brew formula installed, run the command:
181182
183+
$ mkdir -p $(brew --prefix)/etc/bash_completion.d
182184
$ rustup completions bash > $(brew --prefix)/etc/bash_completion.d/rustup.bash-completion
183185
184186
FISH:
185187
186188
Fish completion files are commonly stored in
187189
`$HOME/.config/fish/completions`. Run the command:
188190
191+
$ mkdir -p ~/.config/fish/completions
189192
$ rustup completions fish > ~/.config/fish/completions/rustup.fish
190193
191194
This installs the completion script. You may have to log out and

0 commit comments

Comments
 (0)