From 995b03ffbebc540d19cdf436b573c835b3a6c0e2 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sun, 21 Apr 2024 14:08:49 -0700 Subject: [PATCH] Update .config/fish/conf.d/30-bat.fish --- dot_config/fish/conf.d/30-bat.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot_config/fish/conf.d/30-bat.fish b/dot_config/fish/conf.d/30-bat.fish index 82b9473..1c127f1 100644 --- a/dot_config/fish/conf.d/30-bat.fish +++ b/dot_config/fish/conf.d/30-bat.fish @@ -3,7 +3,11 @@ set -gx BATDIFF_USE_DELTA true function cat --wraps bat - bat $argv + if command -v bat &>/dev/null + bat $argv + else if command -v batcat &>/dev/null + batcat $argv + end end abbr -a B --position anywhere --set-cursor "% | bat"