mirror of
https://github.com/rust-lang/mdBook
synced 2025-03-04 15:17:11 +00:00
Merge pull request #2116 from Stargateur/patch-1
Add oh-my-zsh quick exemple to shell completions
This commit is contained in:
commit
cf88c4e720
1 changed files with 4 additions and 0 deletions
|
@ -6,7 +6,11 @@ This means when you type `mdbook` in your shell, you can then press your shell's
|
|||
The completions first need to be installed for your shell:
|
||||
|
||||
```bash
|
||||
# bash
|
||||
mdbook completions bash > ~/.local/share/bash-completion/completions/mdbook
|
||||
# oh-my-zsh
|
||||
mdbook completions zsh > ~/.oh-my-zsh/completions/_mdbook
|
||||
autoload -U compinit && compinit
|
||||
```
|
||||
|
||||
The command prints a completion script for the given shell.
|
||||
|
|
Loading…
Add table
Reference in a new issue