fish shell completions
See original GitHub issueIt would be amazing if httpie could default-install completions for the awesome fish shell.
Reference: https://fishshell.com/docs/current/#where-to-put-completions
Example of other great tools that does this:
ll /usr/share/fish/vendor_completions.d
.rw-r--r-- 4.4k root root 25 Apr 13:48 bat.fish
.rw-r--r-- 51k root root 11 Mar 2:24 docker.fish
.rw-r--r-- 12k root root 9 May 17:38 rg.fish
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Writing your own completions — fish-shell 3.5.1 documentation
Completions can be defined on the commandline or in a configuration file, but they can also be automatically loaded. Fish automatically searches through...
Read more >A guide for fish shell completions | by Fábio Antunes | Medium
Fish completions don't come out of the box for most of the tools so you either find them yourself by searching for some...
Read more >fish-shell/git.fish at master - completions - GitHub
# For fish, at the time of writing, out of 12200 commits, 7 commits need 8 characters. # And since this takes about...
Read more >How can I provide tab completions to fish shell from my own ...
You should create a fish autocomplete function for your script and source it or put it in ~/.
Read more >The Blobfuse2 completion fish command
Use the blobfuse2 completion fish command to generate the autocompletion script for BlobFuse2 for the fish shell. Syntax. blobfuse2 completion fish --[flag-name ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fish core developer here.
We are always happy to upstream completions directly into the fish codebase, if you like. Fish ships with hundreds of hand-written “dynamic” completions that go far beyond merely state-machine-based deduction of autocompletion parameters and can provide “dynamic” logic based on introspecting the command line and even executing commands at runtime (e.g. the
aws s3
completions allow you tab-complete s3 paths by executings3 ls
and parsing the results incrementally).Additionally, things become different for other programming languages and environments. The Rust tool
fd
for example generates the completion files automatically using Clap. The fd project then creates own deb packages with its CI system. This deb will of course contain the autocompletion files. But there is no guarantee Debian, Ubuntu and the others produce the package the same way. On the other hand, rpm packages are not produced by fd’s CI. Fedora maintains the necessary spec file by its own and incorporates the completion files there explicitly.Packaging is a mess 🙄
PS: It is not always necessary to request that from package maintainers. Often they find the files by themselves within the source and include them. But they are all human beings and some don’t care initially about shell completions and some others have no idea what the heck fish is 😄