mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-13 01:30:58 +01:00
10 lines
259 B
Bash
Executable File
10 lines
259 B
Bash
Executable File
#!/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"
|