install.fairie/home/dot_config/cod/config.toml

57 lines
1.8 KiB
TOML
Raw Normal View History

2023-05-14 17:41:51 -07:00
# 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 = 1000
#
# 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.
# Examples:
# [[rule]]
# executable = "/usr/bin/*"
# policy = 'ignore'
#
# [[rule]]
# executable = "~/bin/*"
# policy = 'trust'
# [[rule]]
# executable = "~/my/repo/**"
# policy = 'trust'