bat-extras/test/shimexec/bat

10 lines
259 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
# Find the real bat.
HERE="$(cd "$(dirname "$0")" && pwd)"
while read -d ':' -r dir; do
if [[ "$dir" == "$HERE" ]]; then continue; fi
if [[ -f "${dir}/bat" ]]; then
exec "${dir}/bat" "$@" --theme="Monokai Extended"
fi
2020-03-31 23:51:00 +02:00
done <<<"$PATH"