cli icon indicating copy to clipboard operation
cli copied to clipboard

feat: install fish completion automatically via setup.cfg

Open sridhar-3009 opened this issue 6 months ago • 0 comments

Summary

Closes #912.

Fish shell completions for http and https already exist in extras/httpie-completion.fish, but they were not wired into the package's install step, so users had to discover and copy the file manually.

This PR adds the file to [options.data_files] in setup.cfg under share/fish/vendor_completions.d/, the standard vendor completions directory that fish auto-loads on startup.

After this change, pip install httpie will drop the completion file in the right place with no user action required — matching the behaviour of tools like bat, rg, and docker.

What changed

setup.cfg: one new entry under [options.data_files]

Test plan

  • [ ] pip install -e . on a machine with fish installed, verify http <TAB> shows completions
  • [ ] pip install -e . without fish — confirm install succeeds (data_files writes silently to a non-existent path; expected behaviour)

sridhar-3009 avatar May 30 '26 07:05 sridhar-3009