From be9544482ca5ab0c484a6587cf8e00ff886358b4 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 25 May 2023 15:29:28 -0700 Subject: [PATCH] Convert ripgrep from stow to chezmoi --- .chezmoiignore | 1 - .../ripgrep.env => dot_config/profile/env.d/ripgrep.env.tmpl | 2 ++ dot_config/ripgrep/config.tmpl | 3 +++ .../bin/executable_install-ripgrep | 0 ripgrep/.config/ripgrep/config | 1 - 5 files changed, 5 insertions(+), 2 deletions(-) rename ripgrep/.config/profile/env.d/ripgrep.env => dot_config/profile/env.d/ripgrep.env.tmpl (70%) create mode 100644 dot_config/ripgrep/config.tmpl rename ripgrep/.local/bin/install-ripgrep => dot_local/bin/executable_install-ripgrep (100%) mode change 100755 => 100644 delete mode 100644 ripgrep/.config/ripgrep/config 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