Closed pimlottc closed 10 months ago
From my reading of the docs, the output of lesspipe should only include colored output when LESS
has been set correctly
Syntax highlighting and other methods of colorizing the output is only activated if the environment variable LESS is existing and contains the option -R (or -r) or less is called with one of these options.
For archives the archive_color script was called unconditionally. That has been fixed now.
Thank you! Working properly now in 2.11
I just installed lesspipe 2.10 on macOS via homebrew and set the LESSOPEN variable as recommended by the installation instructions:
I did not set any options for colored output, but when I view a zip file to see the file listing, I see escape codes.
Steps to reproduce:
mkdir -p dir && zip dir.zip dir
less dir.zip
Expected output:
Actual output: