mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
c305e44f5f
2fc775dec Fix allLanguages code dc6bfbedb Fix header level 6d652458c Fixed typo in docs. 2da6518be Fix broken build in previous commit eabe7a40b Move some release notes to bundles to test the resource setup 34f2a41f2 Add featured image to news articles bba1104b8 Update index.md 62bb8d826 Bundless > bundles afea67773 Release notes spelling f66d13af2 Release Hugo 0.35 613c50cdd releaser: Add release notes to /docs for release of 0.35 c9f7fd637 releaser: Bump versions for release of 0.35 360296c34 docs: Regenerate CLI docs 0d688633f Merge commit '337d0c5f516ee085205e8abefdb7f87e6d33ca05' 8fc9e325b command: Remove undraft command f8cc6d51f docs: Re-generate CLI docs 556ea887a releaser: Prepare repository for 0.35-DEV git-subtree-dir: docs git-subtree-split: 2fc775dece2c5a76aaa3855b6dd054fd74c8738d
1.6 KiB
1.6 KiB
date | title | slug | url |
---|---|---|---|
2018-01-31T11:40:21+01:00 | hugo gen autocomplete | hugo_gen_autocomplete | /commands/hugo_gen_autocomplete/ |
hugo gen autocomplete
Generate shell autocompletion script for Hugo
Synopsis
Generates a shell autocompletion script for Hugo.
NOTE: The current version supports Bash only. This should work for *nix systems with Bash installed.
By default, the file is written directly to /etc/bash_completion.d for convenience, and the command may need superuser rights, e.g.:
$ sudo hugo gen autocomplete
Add --completionfile=/path/to/file
flag to set alternative
file-path and name.
Logout and in again to reload the completion scripts, or just source them in directly:
$ . /etc/bash_completion
hugo gen autocomplete [flags]
Options
--completionfile string autocompletion file (default "/etc/bash_completion.d/hugo.sh")
-h, --help help for autocomplete
--type string autocompletion type (currently only bash supported) (default "bash")
Options inherited from parent commands
--config string config file (default is path/config.yaml|json|toml)
--debug debug output
--log enable Logging
--logFile string log File path (if set, logging enabled automatically)
--quiet build in quiet mode
-v, --verbose verbose output
--verboseLog verbose logging
SEE ALSO
- hugo gen - A collection of several useful generators.