[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.
This commit is contained in:
Bruno BELANYI 2019-10-02 17:47:27 +02:00
parent 0f4d67278c
commit 5f09bfd935

8
scripts/batman Executable file
View file

@ -0,0 +1,8 @@
#!/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 $?