From 1a5b3e5ec180aca0e9463da07939dde60bdba9b3 Mon Sep 17 00:00:00 2001 From: yoshibase Date: Fri, 24 Jul 2026 21:18:10 -0700 Subject: [PATCH] Install Fish completions through Python packages Install a command-named Fish loader alongside the canonical completion definitions without duplicating the completion script. Fixes #912 --- MANIFEST.in | 4 ++++ extras/fish/http.fish | 2 ++ setup.cfg | 3 +++ 3 files changed, 9 insertions(+) create mode 100644 extras/fish/http.fish diff --git a/MANIFEST.in b/MANIFEST.in index a09a3037eb..bf07fbb08e 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -6,3 +6,7 @@ include docs/README.md # recursive-include tests/ * + +# Shell completions installed through setup.cfg data_files +include extras/httpie-completion.fish +include extras/fish/http.fish diff --git a/extras/fish/http.fish b/extras/fish/http.fish new file mode 100644 index 0000000000..5a7b242cbc --- /dev/null +++ b/extras/fish/http.fish @@ -0,0 +1,2 @@ +# Fish loads completions by command name; keep the canonical definitions in one file. +source (dirname (status --current-filename))/httpie-completion.fish diff --git a/setup.cfg b/setup.cfg index 85490981aa..bb0d5bbd6a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -108,3 +108,6 @@ share/man/man1 = extras/man/http.1 extras/man/https.1 extras/man/httpie.1 +share/fish/vendor_completions.d = + extras/httpie-completion.fish + extras/fish/http.fish