Skip to content

Commit

Permalink
Update lesspipe.sh
Browse files Browse the repository at this point in the history
Changed the commit slightly to allow for the name batcat
  • Loading branch information
wofr06 authored Sep 22, 2024
1 parent e408411 commit 332b3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lesspipe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ has_colorizer () {
[[ -n $3 ]] && lang=$3 || lang=$2
case $prog in
bat|batcat)
batconfig=$(bat --config-file)
batconfig=$($prog --config-file)
[[ -n $lang ]] && $prog --list-languages|sed 's/.*:/,/;s/$/,/'|grep -i ",$lang," > /dev/null && opt=(-l "$lang")
[[ -n $LESSCOLORIZER && $LESSCOLORIZER = *\ *--style=* ]] && style="${LESSCOLORIZER/* --style=/}"
[[ -z $style ]] && style=$BAT_STYLE
Expand Down

0 comments on commit 332b3d4

Please sign in to comment.