From: b3nj4m1n Date: Tue, 28 Jun 2022 10:05:48 +0000 (+0200) Subject: Fix using batcat if it exists X-Git-Tag: v0.2.0.1~5 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/af365ec43fd8d39f8d699b6c7ccd1199b09dee51?ds=inline Fix using batcat if it exists --- diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 2005e21..6d7a0ad 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -9,6 +9,9 @@ auto_set_decoder() { DECODER="cat" if has_command glow; then DECODER="glow -" + elif has_command batcat; then + DECODER="batcat -pp --decorations=always --color=always --language markdown" + printf "Markdown rendering will be done by bat. (Glow is recommended)\n" elif has_command bat; then DECODER="bat -pp --decorations=always --color=always --language markdown" printf "Markdown rendering will be done by bat. (Glow is recommended)\n"