Skip to content

Commit b74ebfe

Browse files
authored
Fix Zsh auto-completions setup instructions (#411)
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.
1 parent fa72e3c commit b74ebfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/SwiftlyDocs.docc/shell-autocompletion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ swiftly --generate-completion-script <shell>
2121
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:
2222

2323
```
24-
fpath=(~/.zsh/completion $fpath)
24+
fpath=(~/.zsh/completions $fpath)
2525
autoload -U compinit
2626
compinit
2727
```
2828

2929
Next, create the completion directory and add the swiftly completions to it:
3030

3131
```
32-
mkdir -p ~/.zsh/completion && swiftly --generate-completion-script zsh > ~/.zsh/completions/swiftly
32+
mkdir -p ~/.zsh/completions && swiftly --generate-completion-script zsh > ~/.zsh/completions/_swiftly
3333
```
3434
}
3535

0 commit comments

Comments
 (0)