mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
cod: Regen CLI docs
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user