Debian Codegraph @

docs/content/en/commands/hugo_completion_bash.md

raw
1 ---
2 title: "hugo completion bash"
3 slug: hugo_completion_bash
4 url: /commands/hugo_completion_bash/
5 ---
6 ## hugo completion bash
7
8 Generate the autocompletion script for bash
9
10 ### Synopsis
11
12 Generate the autocompletion script for the bash shell.
13
14 This script depends on the 'bash-completion' package.
15 If it is not installed already, you can install it via your OS's package manager.
16
17 To load completions in your current shell session:
18
19 source <(hugo completion bash)
20
21 To load completions for every new session, execute once:
22
23 #### Linux:
24
25 hugo completion bash > /etc/bash_completion.d/hugo
26
27 #### macOS:
28
29 hugo completion bash > $(brew --prefix)/etc/bash_completion.d/hugo
30
31 You will need to start a new shell for this setup to take effect.
32
33
34 ```
35 hugo completion bash
36 ```
37
38 ### Options
39
40 ```
41 -h, --help help for bash
42 --no-descriptions disable completion descriptions
43 ```
44
45 ### Options inherited from parent commands
46
47 ```
48 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
49 --config string config file (default is hugo.yaml|json|toml)
50 --configDir string config dir (default "config")
51 -d, --destination string filesystem path to write files to
52 -e, --environment string build environment
53 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
54 --logLevel string log level (debug|info|warn|error)
55 --noBuildLock don't create .hugo_build.lock file
56 --quiet build in quiet mode
57 -M, --renderToMemory render to memory (mostly useful when running the server)
58 -s, --source string filesystem path to read files relative from
59 --themesDir string filesystem path to themes directory
60 ```
61
62 ### SEE ALSO
63
64 * [hugo completion](/commands/hugo_completion/) - Generate the autocompletion script for the specified shell