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
|
### Default value: true
|
||||||
### Makes bat fancier.
|
### Makes bat fancier.
|
||||||
JSTMBASH_FANCIER_BAT=true
|
JSTMBASH_FANCIER_BAT=true
|
||||||
## BAT_USE_MOAR
|
## BAT_USE_PAGER
|
||||||
### Type: bool
|
### Type: bool
|
||||||
### Default value: true
|
### Default value: true
|
||||||
### Should bat use moar instead of less?
|
### Should bat use a pager?
|
||||||
JSTM_FANCIER_BAT_USE_MOAR=true
|
JSTM_FANCIER_BAT_USE_PAGER=false
|
||||||
## MOAR
|
## MOAR
|
||||||
### Type: bool
|
### Type: bool
|
||||||
### Default value: true
|
### Default value: true
|
||||||
|
@ -196,4 +196,4 @@ JSTMBASH_FANCIER_YTFZF_NSFW=false
|
||||||
### Only show videos with subtitles.
|
### Only show videos with subtitles.
|
||||||
JSTMBASH_FANCIER_YTFZF_SUBTITLES=false
|
JSTMBASH_FANCIER_YTFZF_SUBTITLES=false
|
||||||
|
|
||||||
# EOF <- Yes, you've reached the end.
|
# EOF <- Yes, you've reached the end.
|
||||||
|
|
|
@ -223,11 +223,11 @@ if [ "${JSTMBASH_FANCIER_EZA}" == "true" ] && which eza &> /dev/null; then
|
||||||
fi
|
fi
|
||||||
## makes bat fancier
|
## makes bat fancier
|
||||||
if [ "${JSTMBASH_FANCIER_BAT}" == "true" ] && which bat &> /dev/null; then
|
if [ "${JSTMBASH_FANCIER_BAT}" == "true" ] && which bat &> /dev/null; then
|
||||||
## check if moar should be bat's pager
|
## check if we should use a pager (moar ofc)
|
||||||
if [ "${JSTMBASH_FANCIER_BAT_USE_MOAR}" == "true" ] && which moar &> /dev/null; then
|
if [ "${JSTMBASH_FANCIER_BAT_USE_PAGER}" == "true" ] && which moar &> /dev/null; then
|
||||||
export "env PAGER=moar -colors 16M --no-linenumbers --statusbar bold "
|
export "env PAGER=moar --no-linenumbers "
|
||||||
fi
|
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
|
# shellcheck disable=SC2139
|
||||||
alias "bat=${PAGER}$(which bat) ${BAT_ARGUMENTS}"
|
alias "bat=${PAGER}$(which bat) ${BAT_ARGUMENTS}"
|
||||||
if [ "${JSTMBASH_ALIASES_USE_BAT}" == "true" ]; then
|
if [ "${JSTMBASH_ALIASES_USE_BAT}" == "true" ]; then
|
||||||
|
|
Reference in a new issue