Closed yrammos closed 1 year ago
Running zsh
5.9, by the way.
I just committed a change that does suppress the error message from the ps command in MacOS. Apart from that you certainly wanted to achieve something else. To get the output from a pipe filtered throgh lesspipe.sh you need to set the variable LESSOPEN properly and pipe into less, not lesspipe.sh as follows:
export LESSOPEN="|-/opt/homebrew/bin/lesspipe.sh %s"
cat ~/.zshrc | less
Please consult the man page of less for the use of |-
and ||-
in LESSOPEN
Thanks for the fix and the correction, @wofr06.
Piping anything through lesspipe produces output such as the following:
I'm reproducing this both with the macOS terminal and kitty.app.
For testing purposes, I produced a minimal
.zshrc
containing only the following:Would be thankful for any suggestions.