Skip to content

Commit

Permalink
Merge pull request rust-lang#2116 from Stargateur/patch-1
Browse files Browse the repository at this point in the history
Add oh-my-zsh quick exemple to shell completions
  • Loading branch information
ehuss authored Jul 16, 2023
2 parents 9911e86 + 6d265c1 commit cf88c4e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions guide/src/cli/completions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cf88c4e

Please sign in to comment.