diff --git a/test/shimexec/bat b/test/shimexec/bat new file mode 100755 index 0000000..47bdf81 --- /dev/null +++ b/test/shimexec/bat @@ -0,0 +1,9 @@ +#!/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 +done <<< "$PATH" diff --git a/test/shimexec/tput b/test/shimexec/tput index 1e1592c..3d77075 100755 --- a/test/shimexec/tput +++ b/test/shimexec/tput @@ -1,3 +1,4 @@ +#!/usr/bin/env bash case "$1" in cols) echo 80 ;; lines) echo 22 ;;