diff --git a/.chezmoiignore b/.chezmoiignore index 3de5f34..556fca5 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -1,7 +1,6 @@ /hellotech/ /install-scripts/ /old-scripts/ -/ripgrep/ /ruby/ /rust/ /starship/ diff --git a/ripgrep/.config/profile/env.d/ripgrep.env b/dot_config/profile/env.d/ripgrep.env.tmpl similarity index 70% rename from ripgrep/.config/profile/env.d/ripgrep.env rename to dot_config/profile/env.d/ripgrep.env.tmpl index a40db09..a3e2d6c 100644 --- a/ripgrep/.config/profile/env.d/ripgrep.env +++ b/dot_config/profile/env.d/ripgrep.env.tmpl @@ -1,2 +1,4 @@ +{{ if lookPath "rg" -}} #shellcheck disable=SC2034 RIPGREP_CONFIG_PATH="${XDG_CONFIG_HOME}/ripgrep/config" +{{- end }} diff --git a/dot_config/ripgrep/config.tmpl b/dot_config/ripgrep/config.tmpl new file mode 100644 index 0000000..c6ce0eb --- /dev/null +++ b/dot_config/ripgrep/config.tmpl @@ -0,0 +1,3 @@ +{{ if lookPath "rg" -}} +--colors=line:fg:black +{{- end }} diff --git a/ripgrep/.local/bin/install-ripgrep b/dot_local/bin/executable_install-ripgrep old mode 100755 new mode 100644 similarity index 100% rename from ripgrep/.local/bin/install-ripgrep rename to dot_local/bin/executable_install-ripgrep diff --git a/ripgrep/.config/ripgrep/config b/ripgrep/.config/ripgrep/config deleted file mode 100644 index dd0c3b0..0000000 --- a/ripgrep/.config/ripgrep/config +++ /dev/null @@ -1 +0,0 @@ ---colors=line:fg:black