Closed ariebovenberg closed 3 years ago
Hey @ariebovenberg, thanks for reporting! We'll take a look at this. If you find out the solution to setup fish
autocomplete, please let us know.
@trietsch looks like you're already mostly there. Whatever CLI framework you're using provides it out-of-the-box
this does the trick
strm completion fish > ~/.config/fish/completions/strm.fish # OR $XDG_CONFIG_HOME instead of ~/.config
Documentation on distributing fish completions: https://fishshell.com/docs/current/completions.html example homebrew formula distributing completions: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/poetry.rb
Nice, thanks for sharing! We'll update the caveats section of our Homebrew formula. Regarding the poetry.rb
example formula for installing autocomplete automatically, if I recall correctly, I have attempted that. But I'll definitely try that again, now that I've got another example :)
Nice setup. A small thing I encountered. The instructions to install completions for the
fish
shell seem outdated. (source "strm/path.fish.inc"
)There seems to be a
strm completion fish
command so it seems you already have something better in mind :)