Skip to content

docs: update shell completions instructions in README#1877

Merged
tmccombs merged 1 commit intosharkdp:masterfrom
littleKitchen:docs/update-completions-readme
Jan 30, 2026
Merged

docs: update shell completions instructions in README#1877
tmccombs merged 1 commit intosharkdp:masterfrom
littleKitchen:docs/update-completions-readme

Conversation

@littleKitchen
Copy link
Contributor

Fixes #1815

Summary

Updated the shell completions section in README.md to use the modern fd --gen-completions method instead of referencing non-existent files.

Changes

The previous instructions referenced files in an 'autocomplete' directory that don't exist in the repository. This PR updates all shell instructions to use the --gen-completions flag:

  • bash: fd --gen-completions bash > ~/.local/share/bash-completion/completions/fd
  • zsh: fd --gen-completions zsh > ~/.zfunc/_fd
  • fish: fd --gen-completions fish > ~/.config/fish/completions/fd.fish
  • powershell: fd --gen-completions powershell

Also mentioned that pre-generated zsh completions are available in contrib/completion.

Copy link
Collaborator

@tmccombs tmccombs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current instructions are for installation from the prebuilt zip and tar files on the releases page.

I'm fine with adding documentation for generating completions from fd, but I'd also like to keep the current instructions (but maybe make it more clear that is in the releases archives, not the repo).

Add documentation for generating completions using fd --gen-completions,
while keeping and clarifying the existing instructions for pre-built
completions from release archives.

- Clarify that pre-built completions are in release archives (autocomplete dir)
- Add new section for generating completions with fd --gen-completions
- Include examples for bash, zsh, fish, and powershell
@littleKitchen littleKitchen force-pushed the docs/update-completions-readme branch from 8d46c35 to 4410dda Compare January 30, 2026 05:33
@tmccombs tmccombs merged commit 0a094a8 into sharkdp:master Jan 30, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] README.md completion instructions are outdated and incorrect for fish

2 participants