mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-19 03:48:11 +01:00
Add executable shim for bat which enforces a theme
This commit is contained in:
parent
f8a9009503
commit
ef9def267f
9
test/shimexec/bat
Executable file
9
test/shimexec/bat
Executable file
@ -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"
|
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
case "$1" in
|
||||
cols) echo 80 ;;
|
||||
lines) echo 22 ;;
|
||||
|
Loading…
Reference in New Issue
Block a user