diff options
Diffstat (limited to 'docs/content/en/commands/hugo_completion_zsh.md')
-rw-r--r-- | docs/content/en/commands/hugo_completion_zsh.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/content/en/commands/hugo_completion_zsh.md b/docs/content/en/commands/hugo_completion_zsh.md index 7dfeab233..7e4e15ac9 100644 --- a/docs/content/en/commands/hugo_completion_zsh.md +++ b/docs/content/en/commands/hugo_completion_zsh.md @@ -16,6 +16,10 @@ to enable it. You can execute the following once: echo "autoload -U compinit; compinit" >> ~/.zshrc +To load completions in your current shell session: + + source <(hugo completion zsh); compdef _hugo hugo + To load completions for every new session, execute once: #### Linux: @@ -24,7 +28,7 @@ To load completions for every new session, execute once: #### macOS: - hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo + hugo completion zsh > $(brew --prefix)/share/zsh/site-functions/_hugo You will need to start a new shell for this setup to take effect. |