question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fish shell completions

See original GitHub issue

It 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:open
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
mqudsicommented, May 23, 2020

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 executing s3 ls and parsing the results incrementally).

1reaction
exploidecommented, May 13, 2020

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 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found