commands: Fix autocomplete docs
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 20 Feb 2021 13:08:51 +0000 (14:08 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 20 Feb 2021 13:08:51 +0000 (14:08 +0100)
commands/genautocomplete.go

index 9806ca44710e75ade746121822e5369c3c69d3eb..5cdb7b688ae34b26ff3c5fc99f0c883ddec3a3c3 100644 (file)
@@ -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.