tetris11@lemmy.ml to Linux@lemmy.ml · 2 days agoLess vs More, what's your poison?message-squaremessage-square46fedilinkarrow-up147arrow-down13
arrow-up144arrow-down1message-squareLess vs More, what's your poison?tetris11@lemmy.ml to Linux@lemmy.ml · 2 days agomessage-square46fedilink
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up6·1 day agoLESSOPEN='| highlight --line-numbers -qs candy --out-format=xterm256 --stdout -i %s'
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up2·edit-21 day agoSys env. It adds syntax highlighting to less. Needs the highlight tool of course, there are others.
minus-squaretetris11@lemmy.mlOPlinkfedilinkarrow-up2·edit-21 day agooh, it literally pipes into another tool! I thought that vertical bar was a config option for less lmao
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up2·23 hours agoYeah, 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
highlight
tool 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.