diff options
Diffstat (limited to 'docs/content/en/commands/hugo_completion_zsh.md')
-rw-r--r-- | docs/content/en/commands/hugo_completion_zsh.md | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/content/en/commands/hugo_completion_zsh.md b/docs/content/en/commands/hugo_completion_zsh.md index 06fb7507e..7088d4d32 100644 --- a/docs/content/en/commands/hugo_completion_zsh.md +++ b/docs/content/en/commands/hugo_completion_zsh.md @@ -5,23 +5,26 @@ url: /commands/hugo_completion_zsh/ --- ## hugo completion zsh -generate the autocompletion script for zsh +Generate the autocompletion script for zsh ### Synopsis - Generate the autocompletion script for the zsh shell. If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once: -$ echo "autoload -U compinit; compinit" >> ~/.zshrc + echo "autoload -U compinit; compinit" >> ~/.zshrc To load completions for every new session, execute once: -# Linux: -$ hugo completion zsh > "${fpath[1]}/_hugo" -# macOS: -$ hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo + +#### Linux: + + hugo completion zsh > "${fpath[1]}/_hugo" + +#### macOS: + + hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo You will need to start a new shell for this setup to take effect. @@ -56,5 +59,5 @@ hugo completion zsh [flags] ### SEE ALSO -* [hugo completion](/commands/hugo_completion/) - generate the autocompletion script for the specified shell +* [hugo completion](/commands/hugo_completion/) - Generate the autocompletion script for the specified shell |