HUGO-COMPLETION-BASH(1)

✨ NAME ✨

ok so hugo-completion-bash β€” it generates the autocompletion script for bash πŸ’… that's literally the whole thing, and it's lowkey iconic.


🌸 SYNOPSIS 🌸

hugo completion bash

πŸŽ€ DESCRIPTION πŸŽ€

bestie listen: this generates the autocompletion script for the bash shell. that's it, that's the vibe ✨

heads up though β€” this script depends on the bash-completion package. if it's not installed already, you can install it via your OS's package manager. no cap, go do that first πŸ™ˆ

To load completions in your current shell session:

source <(hugo completion bash)

To load completions for every new session, execute once:

🐧 Linux:

hugo completion bash > /etc/bash_completion.d/hugo

🍎 macOS:

hugo completion bash > $(brew --prefix)/etc/bash_completion.d/hugo

You will need to start a new shell for this setup to take effect 🌈 (yeah, the classic "it's not working" moment β€” just open a fresh shell, trust 🫢)


πŸ’… OPTIONS πŸ’…

  • -h, --help[=false] β€” help for bash. your lil emergency exit πŸšͺ
  • --no-descriptions[=false] β€” disable completion descriptions. bye bye lil explanatory text 🫑

πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

  • --clock="" β€” set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00 ⏰ (yes, Hugo can time travel, kinda)
  • --config="" β€” config file (default is hugo.yaml|json|toml)
  • --configDir="config" β€” config dir πŸ“
  • -d, --destination="" β€” filesystem path to write files to
  • -e, --environment="" β€” build environment 🌱
  • --ignoreVendorPaths="" β€” ignores any _vendor for module paths matching the given Glob pattern
  • --logLevel="" β€” log level (debug|info|warn|error)
  • --noBuildLock[=false] β€” don't create .hugo_build.lock file πŸ”“
  • --quiet[=false] β€” build in quiet mode 🀫
  • -M, --renderToMemory[=false] β€” render to memory (mostly useful when running the server) 🧠
  • -s, --source="" β€” filesystem path to read files relative from
  • --themesDir="" β€” filesystem path to themes directory 🎨

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie, you ate πŸ’– this lil beauty comes from Hugo 0.169.0 and is dated Oct 2026 β€” go forth and complete all the things βœ¨πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from