From 2e5803e08d66f64365b2f70f33210d409c3775f9 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 21 Apr 2024 11:23:20 -0700 Subject: [PATCH] Remove .config/bat/rebuild-cache.fish Add .config/bat/rebuild-cache.fish --- dot_config/bat/run_rebuild-cache.fish | 3 --- dot_config/bat/run_rebuild-cache.fish.tmpl | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 dot_config/bat/run_rebuild-cache.fish create mode 100644 dot_config/bat/run_rebuild-cache.fish.tmpl diff --git a/dot_config/bat/run_rebuild-cache.fish b/dot_config/bat/run_rebuild-cache.fish deleted file mode 100644 index 6f89c5f..0000000 --- a/dot_config/bat/run_rebuild-cache.fish +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env fish - -bat cache --build diff --git a/dot_config/bat/run_rebuild-cache.fish.tmpl b/dot_config/bat/run_rebuild-cache.fish.tmpl new file mode 100644 index 0000000..25fa710 --- /dev/null +++ b/dot_config/bat/run_rebuild-cache.fish.tmpl @@ -0,0 +1,7 @@ +#!/usr/bin/env fish + +{{ if lookPath "bat" -}} +bat cache --build +{{ else if lookPath "batcat" -}} +batcat cache --build +{{ end -}}