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 -}}