conf FANCIER_BAT_USE_MOAR -> FANCIER_BAT_USE_PAGER
This commit is contained in:
parent
0b9867c347
commit
65fc25d711
2 changed files with 8 additions and 8 deletions
|
@ -158,11 +158,11 @@ JSTMBASH_FANCIER_EZA_GITINFO=true
|
|||
### Default value: true
|
||||
### Makes bat fancier.
|
||||
JSTMBASH_FANCIER_BAT=true
|
||||
## BAT_USE_MOAR
|
||||
## BAT_USE_PAGER
|
||||
### Type: bool
|
||||
### Default value: true
|
||||
### Should bat use moar instead of less?
|
||||
JSTM_FANCIER_BAT_USE_MOAR=true
|
||||
### Should bat use a pager?
|
||||
JSTM_FANCIER_BAT_USE_PAGER=false
|
||||
## MOAR
|
||||
### Type: bool
|
||||
### Default value: true
|
||||
|
|
|
@ -223,11 +223,11 @@ if [ "${JSTMBASH_FANCIER_EZA}" == "true" ] && which eza &> /dev/null; then
|
|||
fi
|
||||
## makes bat fancier
|
||||
if [ "${JSTMBASH_FANCIER_BAT}" == "true" ] && which bat &> /dev/null; then
|
||||
## check if moar should be bat's pager
|
||||
if [ "${JSTMBASH_FANCIER_BAT_USE_MOAR}" == "true" ] && which moar &> /dev/null; then
|
||||
export "env PAGER=moar -colors 16M --no-linenumbers --statusbar bold "
|
||||
## check if we should use a pager (moar ofc)
|
||||
if [ "${JSTMBASH_FANCIER_BAT_USE_PAGER}" == "true" ] && which moar &> /dev/null; then
|
||||
export "env PAGER=moar --no-linenumbers "
|
||||
fi
|
||||
BAT_ARGUMENTS="--decorations=always --color=always --theme=Dracula --italic-text=always --wrap=never --nonprintable-notation=caret --paging=auto --style full"
|
||||
BAT_ARGUMENTS="-colors 16M --statusbar bold --decorations=always --color=always --theme=Dracula --italic-text=always --wrap=never --nonprintable-notation=caret --paging=auto --style full"
|
||||
# shellcheck disable=SC2139
|
||||
alias "bat=${PAGER}$(which bat) ${BAT_ARGUMENTS}"
|
||||
if [ "${JSTMBASH_ALIASES_USE_BAT}" == "true" ]; then
|
||||
|
|
Reference in a new issue