diff --git a/home/.chezmoiscripts/universal/run_onchange_after_11-symlink-nvim.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_11-symlink-nvim.tmpl index 9ef65827..374b029f 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_11-symlink-nvim.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_11-symlink-nvim.tmpl @@ -19,7 +19,7 @@ if [ ! -d "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/lua/custom" ]; then logg info "Linking ${XDG_CONFIG_HOME:-$HOME/.config}/nvim-custom to ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/lua/custom" logg info "Changes should go in ${XDG_CONFIG_HOME:-$HOME/.config}/nvim-custom" ln -s "${XDG_CONFIG_HOME:-$HOME/.config}/nvim-custom" "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/lua/custom" -elif flatpak list | grep 'io.neovim.nvim' > /dev/null && [ ! -d "~/.var/app/io.neovim.nvim/config/nvim/lua/custom" ]; then +elif command -v flatpak && flatpak list | grep 'io.neovim.nvim' > /dev/null && [ ! -d "~/.var/app/io.neovim.nvim/config/nvim/lua/custom" ]; then logg info "Linking ${XDG_CONFIG_HOME:-$HOME/.config}/nvim-custom to ~/.var/app/io.neovim.nvim/config/nvim/lua/custom" logg info "Changes should go in ${XDG_CONFIG_HOME:-$HOME/.config}/nvim-custom" ln -s "${XDG_CONFIG_HOME:-$HOME/.config}/nvim-custom" "~/.var/app/io.neovim.nvim/config/nvim/lua/custom" diff --git a/home/dot_config/cod/config.toml b/home/dot_config/cod/config.toml index 3129dba0..b8606117 100644 --- a/home/dot_config/cod/config.toml +++ b/home/dot_config/cod/config.toml @@ -10,7 +10,7 @@ # '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 +command-execution-timeout = 5000 # @@ -42,15 +42,14 @@ # - '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 = "/usr/bin/*" +policy = 'trust' -# [[rule]] -# executable = "~/my/repo/**" -# policy = 'trust' +[[rule]] +executable = "/usr/local/bin/*" +policy = 'trust' + +[[rule]] +executable = "~/.local/bin/**" +policy = 'trust'