diff --git a/config.env.example b/config.env.example index 85f4a72..c939d2f 100644 --- a/config.env.example +++ b/config.env.example @@ -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 @@ -196,4 +196,4 @@ JSTMBASH_FANCIER_YTFZF_NSFW=false ### Only show videos with subtitles. JSTMBASH_FANCIER_YTFZF_SUBTITLES=false -# EOF <- Yes, you've reached the end. \ No newline at end of file +# EOF <- Yes, you've reached the end. diff --git a/init.source b/init.source index 06e250c..7218df2 100644 --- a/init.source +++ b/init.source @@ -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