Skip to content

Commit

Permalink
commands: Fix autocomplete docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 20, 2021
1 parent b3504a0 commit c8f45d1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions commands/genautocomplete.go
Expand Up @@ -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.
Expand Down

0 comments on commit c8f45d1

Please sign in to comment.