11 ms·
Completions need to do arbitrary computation. A command like `git switch` needs to find what branches are available in the repository.
by FrozenCow 2y ago
Completions need to do arbitrary computation. A command like `git switch` needs to find what branches are available in the repository.
- bbkane 2y agoTrue, but you can represent that in the db as a a CLI invocation to run in a subshell. The big gain from something like carapace or my theoretical SQLite-based completion system is faster startup time. I had to remove zsh-completions from my shell setup as it added too much to the startup time (https://github.com/bbkane/dotfiles/blob/master/zsh/README_notes.md#install-zsh-completions---replaced-with-carapace-bin https://github.com/bbkane/dotfiles/blob/master/zsh/README_no...)