tetris11@lemmy.ml to Linux@lemmy.ml · 7 个月前Less vs More, what's your poison?message-squaremessage-square49fedilinkarrow-up154
arrow-up154message-squareLess vs More, what's your poison?tetris11@lemmy.ml to Linux@lemmy.ml · 7 个月前message-square49fedilink
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up9·7 个月前LESSOPEN='| highlight --line-numbers -qs candy --out-format=xterm256 --stdout -i %s'
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up4·edit-27 个月前Sys env. It adds syntax highlighting to less. Needs the highlight tool of course, there are others.
minus-squaretetris11@lemmy.mlOPlinkfedilinkarrow-up2·edit-27 个月前oh, it literally pipes into another tool! I thought that vertical bar was a config option for less lmao
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up2·7 个月前Yeah, less is weird there with needing the pipe.
LESSOPEN='| highlight --line-numbers -qs candy --out-format=xterm256 --stdout -i %s'is that an alias or a sys env?
Sys env. It adds syntax highlighting to less. Needs the
highlighttool of course, there are others.oh, it literally pipes into another tool! I thought that vertical bar was a config option for less lmao
Yeah, less is weird there with needing the pipe.