[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:
parent
0f4d67278c
commit
5f09bfd935
8
scripts/batman
Executable file
8
scripts/batman
Executable 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 $?
|
Loading…
Reference in a new issue