From bfef654250182d7d9876b31949a4ae8464bc44f3 Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Sat, 5 Oct 2024 09:41:25 -0700 Subject: [PATCH] Update .config/fish/conf.d/30-chezmoi.fish --- dot_config/fish/conf.d/30-chezmoi.fish | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot_config/fish/conf.d/30-chezmoi.fish b/dot_config/fish/conf.d/30-chezmoi.fish index 11387fa..e16b700 100644 --- a/dot_config/fish/conf.d/30-chezmoi.fish +++ b/dot_config/fish/conf.d/30-chezmoi.fish @@ -12,5 +12,9 @@ if command -v chezmoi &>/dev/null abbr -a czcm --position command 'git aa && git c -m "$(chezmoi generate git-commit-message)" && git p' - abbr -a czd --position command "chezmoi data | bat --language=json" + if command -v bat &>/dev/null + abbr -a czd --position command "chezmoi data | bat --language=json" + else if command -v batcat &>/dev/null + abbr -a czd --position command "chezmoi data | batcat --language=json" + end end