I suggest adding the following case to lesspipe_file() *" script text executable"*) lesspipe "$1" ".sh" ;; in order to allow syntax coloring of shell scripts with no file extension. Reproducible: Always Steps to Reproduce:
added to the tree, cheers http://sources.gentoo.org/sys-apps/less/files/lesspipe.sh?r1=1.26&r2=1.27