Add oh-my-zsh quick exemple to shell completions

I have trouble to find this information, doesn't cost must to add it here.
This commit is contained in:
Antoine 2023-07-08 13:48:51 +02:00 committed by GitHub
parent 904aa530b5
commit 6d265c1cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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.