mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-14 10:10:41 +01:00
21 lines
702 B
Bash
21 lines
702 B
Bash
|
#!/usr/bin/env bash
|
||
|
# -----------------------------------------------------------------------------
|
||
|
# bat-extras | Copyright (C) 2019 eth-p | MIT License
|
||
|
#
|
||
|
# Repository: https://github.com/eth-p/bat-extras
|
||
|
# Issues: https://github.com/eth-p/bat-extras/issues
|
||
|
# -----------------------------------------------------------------------------
|
||
|
LIB="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../lib"
|
||
|
source "${LIB}/print.sh"
|
||
|
source "${LIB}/opt.sh"
|
||
|
source "${LIB}/version.sh"
|
||
|
# -----------------------------------------------------------------------------
|
||
|
|
||
|
export MANPAGER='sh -c "col -bx | bat --language man --style grid"'
|
||
|
export MANROFFOPT='-c'
|
||
|
export BAT_PAGER="$PAGER"
|
||
|
|
||
|
command man "$@"
|
||
|
exit $?
|
||
|
|