From 6d265c1ccee5dafbb97b7167c0a1a6ed9fd4fd02 Mon Sep 17 00:00:00 2001 From: Antoine Date: Sat, 8 Jul 2023 13:48:51 +0200 Subject: [PATCH] Add oh-my-zsh quick exemple to shell completions I have trouble to find this information, doesn't cost must to add it here. --- guide/src/cli/completions.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guide/src/cli/completions.md b/guide/src/cli/completions.md index 1246b1ee..1ca21242 100644 --- a/guide/src/cli/completions.md +++ b/guide/src/cli/completions.md @@ -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.