-#!/usr/bin/env bash
-
-USE_GLOW=true
-if ! command -v glow &>/dev/null; then
- echo "Glow not found, markdown rendering not available."
- echo "Output will be raw markdown and might look weird."
- echo "Install glow for easier reading & copy-paste."
- USE_GLOW=false
+#!/usr/bin/env sh
+
+USE_GLOW=false
+USE_BAT=false
+if command -v glow >/dev/null 2>/dev/null; then
+ USE_GLOW=true
+elif command -v bat >/dev/null 2>/dev/null; then
+ USE_BAT=true
+ printf "Glow not found, markdown rendering will be done by bat.\n"
+ printf "Install glow for easier reading & copy-paste.\n"
+else
+ printf "Glow or bat not found, markdown rendering not available.\n"
+ printf "Output will be raw markdown and might look weird.\n"
+ printf "Install glow for easier reading & copy-paste.\n"