Possible to disable on environment variable?
Closed this issue · 3 comments
iloveitaly commented
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?
dim-an commented
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'
iloveitaly commented
Oh great! Thank you. Might be a helpful addition to the readme.
dim-an commented
There is a little section about configuration in README, but perhaps it could be improved.