dot-files/scripts/batman
Bruno BELANYI 5f09bfd935 [ADD][SCRIPT] Batman script
This was shamelessly stolen from the `bat-extras` repository, with a
little modification to call the pager with my wanted default options.

This obviously depends on the `bat` utility.
2019-10-18 22:17:20 +02:00

9 lines
170 B
Bash
Executable file

#!/usr/bin/env bash
export MANPAGER='sh -c "col -bx | bat --language man --style grid"'
export MANROFFOPT='-c'
export BAT_PAGER="$PAGER $LESS"
command man "$@"
exit $?