Here is the idea for setting up completion with a broad range of shells.
elm setup-completion <SHELL>
Add elm setup-completion bash
to .bashrc
.
It would run complete -C elm elm
and do things with environment variables.
Add elm setup-completion fish
to ~/.config/fish/config.fish
.
It creates ~/.config/fish/completions/elm.fish
which will be like:
- https://github.com/ohanhi/fish-elm-completions
- https://fishshell.com/docs/current/index.html#completion-own
- https://github.com/fish-shell/fish-shell/tree/master/share/completions
This will allow me to add the descriptions and example values that I have.
Thanks to Ossi for sharing this info!
Add elm setup-completion zsh
to ~/.zshrc
.
Maybe it just runs all the commands that are needed. More on the situation in:
Thanks to Mario for this information!