diff options
author | Ben Mezger <me@benmezger.nl> | 2021-02-02 20:03:31 -0300 |
---|---|---|
committer | Anthony Fok <foka@debian.org> | 2021-02-04 15:32:51 -0700 |
commit | d36fd5b3ee6989203de2a29b1de67521fd1c8ea5 (patch) | |
tree | f55a694f63534cc286550c1ca2c90038bfec0040 /docs | |
parent | a7c515e1b56e8cab34ca2647b4116904df9c8250 (diff) |
Refactor: Write to stdout by default
Diffstat (limited to 'docs')
-rw-r--r-- | docs/content/en/commands/hugo_gen_autocomplete.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/content/en/commands/hugo_gen_autocomplete.md b/docs/content/en/commands/hugo_gen_autocomplete.md index 033e4fa82..9fbfac955 100644 --- a/docs/content/en/commands/hugo_gen_autocomplete.md +++ b/docs/content/en/commands/hugo_gen_autocomplete.md @@ -12,10 +12,10 @@ Generate shell autocompletion script for Hugo Generates a shell autocompletion script for Hugo. -By default, the file is written directly to /etc/bash_completion.d +By default, the file is written directly to `stdout` for convenience, and the command may need superuser rights, e.g.: - $ sudo hugo gen autocomplete + $ sudo hugo gen autocomplete Add `--completionfile=/path/to/file` flag to set alternative file-path and name. @@ -26,7 +26,7 @@ shell type. Logout and in again to reload the completion scripts, or just source them in directly: - $ . /etc/bash_completion or /path/to/file + $ . /path/to/file ``` hugo gen autocomplete [flags] @@ -35,7 +35,7 @@ hugo gen autocomplete [flags] ### Options ``` - --completionfile string autocompletion file (default "/etc/bash_completion.d/hugo.sh") + --completionfile string autocompletion file (defaults to stdout) -h, --help help for autocomplete --type string autocompletion type (zsh, bash or fish) (default "bash") ``` @@ -60,6 +60,6 @@ hugo gen autocomplete [flags] ### SEE ALSO -* [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. +- [hugo gen](/commands/hugo_gen/) - A collection of several useful generators. ###### Auto generated by spf13/cobra on 6-Jan-2021 |