hugo_completion_zsh.md (1920B)
1 --- 2 title: "hugo completion zsh" 3 slug: hugo_completion_zsh 4 url: /commands/hugo_completion_zsh/ 5 --- 6 ## hugo completion zsh 7 8 Generate the autocompletion script for zsh 9 10 ### Synopsis 11 12 Generate the autocompletion script for the zsh shell. 13 14 If shell completion is not already enabled in your environment you will need 15 to enable it. You can execute the following once: 16 17 echo "autoload -U compinit; compinit" >> ~/.zshrc 18 19 To load completions for every new session, execute once: 20 21 #### Linux: 22 23 hugo completion zsh > "${fpath[1]}/_hugo" 24 25 #### macOS: 26 27 hugo completion zsh > /usr/local/share/zsh/site-functions/_hugo 28 29 You will need to start a new shell for this setup to take effect. 30 31 32 ``` 33 hugo completion zsh [flags] 34 ``` 35 36 ### Options 37 38 ``` 39 -h, --help help for zsh 40 --no-descriptions disable completion descriptions 41 ``` 42 43 ### Options inherited from parent commands 44 45 ``` 46 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 47 --config string config file (default is path/config.yaml|json|toml) 48 --configDir string config dir (default "config") 49 --debug debug output 50 -e, --environment string build environment 51 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern 52 --log enable Logging 53 --logFile string log File path (if set, logging enabled automatically) 54 --quiet build in quiet mode 55 -s, --source string filesystem path to read files relative from 56 --themesDir string filesystem path to themes directory 57 -v, --verbose verbose output 58 --verboseLog verbose logging 59 ``` 60 61 ### SEE ALSO 62 63 * [hugo completion](/commands/hugo_completion/) - Generate the autocompletion script for the specified shell 64