summaryrefslogtreecommitdiffhomepage
path: root/commands
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2021-02-20 14:08:51 +0100
committerBjørn Erik Pedersen <[email protected]>2021-02-20 14:08:51 +0100
commitc8f45d1d861f596821afc068bd12eb1213aba5ce (patch)
tree0e927754f8330a25bc88b4863f53cef3ff29f7b7 /commands
parentb3504a0ee812fe59be5fcfd961e2b67007241aff (diff)
downloadhugo-c8f45d1d861f596821afc068bd12eb1213aba5ce.tar.gz
hugo-c8f45d1d861f596821afc068bd12eb1213aba5ce.zip
commands: Fix autocomplete docs
Diffstat (limited to 'commands')
-rw-r--r--commands/genautocomplete.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/commands/genautocomplete.go b/commands/genautocomplete.go
index 9806ca447..5cdb7b688 100644
--- a/commands/genautocomplete.go
+++ b/commands/genautocomplete.go
@@ -40,13 +40,9 @@ func newGenautocompleteCmd() *genautocompleteCmd {
Short: "Generate shell autocompletion script for Hugo",
Long: `Generates a shell autocompletion script for Hugo.
-By default, the file is written directly to /etc/bash_completion.d
-for convenience, and the command may need superuser rights, e.g.:
+The script is written to the console (stdout).
- $ sudo hugo gen autocomplete
-
-Add ` + "`--completionfile=/path/to/file`" + ` flag to set alternative
-file-path and name.
+To write to file, add the ` + "`--completionfile=/path/to/file`" + ` flag.
Add ` + "`--type={bash, zsh, fish or powershell}`" + ` flag to set alternative
shell type.