dim-an/cod

Possible to disable on environment variable?

Closed this issue · 3 comments

I want to instruct card to only generate completions for specific commands. I do not want to watch for command on each run.

Is there a way to disable card from actively watching for new commands via an environment variable?

It can be done via configuration.

cod example-config provides a commented configuration example.

Such configuration should disable for all binaries (you can still learn commands manually via cod learn).

# Put this configuration into '~/.config/cod/config.toml'.
[[rule]]
executable = "/**"
policy = 'ignore'

Oh great! Thank you. Might be a helpful addition to the readme.

There is a little section about configuration in README, but perhaps it could be improved.