bat-extras/src/batman.sh
2019-09-07 15:19:12 -07:00

21 lines
702 B
Bash
Executable File

#!/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 $?