aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-09-22 17:57:13 +0200
committerBjørn Erik Pedersen <[email protected]>2022-09-22 17:57:13 +0200
commit4f9cb4f344ff765bf5cbc662b3685cb5afef9b50 (patch)
treed9dda69d99a02ed20c4b55e89962aaa279b0d973
parent0171fb2010a9200ef2f0bbe16c223dd3d38cb155 (diff)
downloadhugo-4f9cb4f344ff765bf5cbc662b3685cb5afef9b50.tar.gz
hugo-4f9cb4f344ff765bf5cbc662b3685cb5afef9b50.zip
docs: Regenerate CLI docs
-rw-r--r--docs/content/en/commands/hugo_completion_bash.md2
-rw-r--r--docs/content/en/commands/hugo_completion_zsh.md6
-rw-r--r--docs/content/en/commands/hugo_new.md1
3 files changed, 7 insertions, 2 deletions
diff --git a/docs/content/en/commands/hugo_completion_bash.md b/docs/content/en/commands/hugo_completion_bash.md
index ccdd979ae..d77093456 100644
--- a/docs/content/en/commands/hugo_completion_bash.md
+++ b/docs/content/en/commands/hugo_completion_bash.md
@@ -26,7 +26,7 @@ To load completions for every new session, execute once:
#### macOS:
- hugo completion bash > /usr/local/etc/bash_completion.d/hugo
+ hugo completion bash > $(brew --prefix)/etc/bash_completion.d/hugo
You will need to start a new shell for this setup to take effect.
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.
diff --git a/docs/content/en/commands/hugo_new.md b/docs/content/en/commands/hugo_new.md
index d294b65b3..5d044b60b 100644
--- a/docs/content/en/commands/hugo_new.md
+++ b/docs/content/en/commands/hugo_new.md
@@ -36,6 +36,7 @@ hugo new [path] [flags]
--disableKinds strings disable different kind of pages (home, RSS etc.)
--editor string edit new content with this editor, if provided
--enableGitInfo add Git revision, date, author, and CODEOWNERS info to the pages
+ -f, --force overwrite file if it already exists
--forceSyncStatic copy all files when static is changed.
--gc enable to run some cleanup tasks (remove unused cache files) after the build
-h, --help help for new