Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8371c20

Browse files
ricvelozoyodaldevoid
authored andcommitted
Suggest home directory for bash completion
1 parent 819ddda commit 8371c20

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/cli/help.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,12 @@ r"DISCUSSION:
164164
165165
BASH:
166166
167-
Completion files are commonly stored in `/etc/bash_completion.d/`.
167+
Completion files are commonly stored in `/etc/bash_completion.d/` for
168+
system-wide commands, but can be stored in in
169+
`~/.local/share/bash_completion/completions` for user-specific commands.
168170
Run the command:
169171
170-
$ rustup completions bash > /etc/bash_completion.d/rustup.bash-completion
172+
$ rustup completions bash >> ~/.local/share/bash_completion/completions/rustup
171173
172174
This installs the completion script. You may have to log out and
173175
log back in to your shell session for the changes to take affect.

0 commit comments

Comments
 (0)