Skip to content

Commit 6d265c1

Browse files
authored
Add oh-my-zsh quick exemple to shell completions
I have trouble to find this information, doesn't cost must to add it here.
1 parent 904aa53 commit 6d265c1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guide/src/cli/completions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ This means when you type `mdbook` in your shell, you can then press your shell's
66
The completions first need to be installed for your shell:
77

88
```bash
9+
# bash
910
mdbook completions bash > ~/.local/share/bash-completion/completions/mdbook
11+
# oh-my-zsh
12+
mdbook completions zsh > ~/.oh-my-zsh/completions/_mdbook
13+
autoload -U compinit && compinit
1014
```
1115

1216
The command prints a completion script for the given shell.

0 commit comments

Comments
 (0)