55 lines
1.8 KiB
TOML
55 lines
1.8 KiB
TOML
# cod configuration
|
|
# Put this configuration into '~/.config/cod/config.toml'.
|
|
#
|
|
# Lines starting with '#' are comments.
|
|
|
|
|
|
#
|
|
# Misc options
|
|
# ============
|
|
# 'command-execution-timout' controls how long cod waits for completion of command (in milliseconds).
|
|
# Default value is 1000 (i.e. 1 second).
|
|
#
|
|
command-execution-timeout = 5000
|
|
|
|
|
|
#
|
|
# Rules
|
|
# =====
|
|
|
|
# Configuration might have several '[[rule]]' sections.
|
|
# Whenever cod detects usage of help command in the shell it will scan all
|
|
# such sections. When it finds first appropriate rule (see 'executable' key)
|
|
# 'policy' from this rule is used. If no appropriate rule is found default
|
|
# policy is used.
|
|
|
|
# 'executable' controls which executables this rule is applied to.
|
|
# 'executble' might have one of following forms:
|
|
# - '/path/to/executable' :: current rule applies to specified executable
|
|
# - '/path/to/dir/*' :: current rule applies to all executables
|
|
# in '/path/to/dir' directory but not in
|
|
# its subdirectories.
|
|
# - '/path/to/dir/**' :: current rule applies to all executables
|
|
# in '/path/to/dir' directory or its subdirectory
|
|
# - 'exec-name' :: current rule applies to all executables with basename
|
|
# 'exec-name'
|
|
#
|
|
# Paths must be absolute. '~/' is expanded to home directory.
|
|
|
|
# 'policy' controls cod actions whenever it detects usage of help command
|
|
# in the shell. Possible values for 'policy' are:
|
|
# - 'ask' :: default policy, cod will ask if you want to learn command;
|
|
# - 'trust' :: cod will automatically learn detected help command;
|
|
# - 'ignore' :: cod will ignore all command for this executable.
|
|
|
|
[[rule]]
|
|
executable = "/usr/bin/*"
|
|
policy = 'trust'
|
|
|
|
[[rule]]
|
|
executable = "/usr/local/bin/*"
|
|
policy = 'trust'
|
|
|
|
[[rule]]
|
|
executable = "~/.local/bin/**"
|
|
policy = 'trust'
|