From 9263645fbcf37f33e72e1c8b17da29a08d350bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Sl=C3=AD=C5=BE?= <3275022+tomassliz@users.noreply.github.com> Date: Fri, 22 Aug 2025 21:54:42 +0200 Subject: [PATCH] Fix Zsh auto-completions setup instructions Use the plural form for the "completions" folder to maintain consistent naming. Prefix the generated Zsh completions file with an underscore; otherwise, it won't match the expected naming convention, and the completions will not work. --- Documentation/SwiftlyDocs.docc/shell-autocompletion.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/SwiftlyDocs.docc/shell-autocompletion.md b/Documentation/SwiftlyDocs.docc/shell-autocompletion.md index b0389899..874dc613 100644 --- a/Documentation/SwiftlyDocs.docc/shell-autocompletion.md +++ b/Documentation/SwiftlyDocs.docc/shell-autocompletion.md @@ -21,7 +21,7 @@ swiftly --generate-completion-script Otherwise, you'll need to add a path for completion scripts to your function path, and turn on completion script autoloading. First, add these lines to ~/.zshrc: ``` - fpath=(~/.zsh/completion $fpath) + fpath=(~/.zsh/completions $fpath) autoload -U compinit compinit ``` @@ -29,7 +29,7 @@ swiftly --generate-completion-script Next, create the completion directory and add the swiftly completions to it: ``` - mkdir -p ~/.zsh/completion && swiftly --generate-completion-script zsh > ~/.zsh/completions/swiftly + mkdir -p ~/.zsh/completions && swiftly --generate-completion-script zsh > ~/.zsh/completions/_swiftly ``` }