diff --git a/ChangeLog b/ChangeLog index 9067283..9f7e1f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ **************************************************************************** # ChangeLog for lesspipe.sh # **************************************************************************** +- respect bat options from LESSCOLORIZER - propagate lesspipe changes to lesscomplete - don't use antiword any longer, outdated - use 7zip instead of now outdated p7zip if available diff --git a/lesspipe.sh b/lesspipe.sh index 4c1b234..ebc4dbb 100755 --- a/lesspipe.sh +++ b/lesspipe.sh @@ -446,6 +446,8 @@ has_colorizer () { if [[ -r "$HOME/.config/bat/config" ]]; then grep -q -e '^--style' "$HOME/.config/bat/config" || opt+=(--style="${style%% *}") grep -q -e '^--theme' "$HOME/.config/bat/config" || opt+=(--theme="${theme%% *}") + else + opt+=(--style="${style%% *}" --theme="${theme%% *}") fi opt+=("$COLOR" --paging=never "$1") ;; pygmentize)