nix-community / comma

Comma runs software without installing it. [maintainers=@Artturin,@burke,@DavHau]
1.14k stars 50 forks source link

Shell completion #54

Closed ambroisie closed 1 year ago

ambroisie commented 1 year ago

It would be nice if comma shipped with shell completion files (i.e: make it so that the shell completes as if , was not there).

Artturin commented 1 year ago

This can't be easily done because we would have to source the target packages completion files and somehow do something and writing completion scripts is complex

closing because i don't want to implement it, PRs welcome though.

ambroisie commented 1 year ago

I would assume one can simply delegate to the bash/zsh/fish completion system, simply by removing the , in the first element of the command-line array?

EDIT: kind-of like the following for zsh (though it doesn't simply rename a command, it needs to remove it).