cod: Regen CLI docs

This commit is contained in:
Bjørn Erik Pedersen
2022-02-28 08:12:35 +01:00
parent fd0c1a5e9b
commit 14915a0c32
9 changed files with 44 additions and 37 deletions

View File

@@ -5,27 +5,31 @@ url: /commands/hugo_completion_bash/
---
## hugo completion bash
generate the autocompletion script for bash
Generate the autocompletion script for bash
### Synopsis
Generate the autocompletion script for the bash shell.
This script depends on the 'bash-completion' package.
If it is not installed already, you can install it via your OS's package manager.
To load completions in your current shell session:
$ source <(hugo completion bash)
source <(hugo completion bash)
To load completions for every new session, execute once:
Linux:
$ hugo completion bash > /etc/bash_completion.d/hugo
MacOS:
$ hugo completion bash > /usr/local/etc/bash_completion.d/hugo
#### Linux:
hugo completion bash > /etc/bash_completion.d/hugo
#### macOS:
hugo completion bash > /usr/local/etc/bash_completion.d/hugo
You will need to start a new shell for this setup to take effect.
```
hugo completion bash
@@ -57,5 +61,5 @@ hugo completion bash
### SEE ALSO
* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell
* [hugo completion](/commands/hugo_completion/) - Generate the autocompletion script for the specified shell