@tetris11@lemmy.ml to Linux@lemmy.ml • 28 days agoLess vs More, what's your poison?message-square49arrow-up155
arrow-up155message-squareLess vs More, what's your poison?@tetris11@lemmy.ml to Linux@lemmy.ml • 28 days agomessage-square49
minus-square@MonkderVierte@lemmy.mllinkfedilink9•28 days agoLESSOPEN='| highlight --line-numbers -qs candy --out-format=xterm256 --stdout -i %s'
minus-square@MonkderVierte@lemmy.mllinkfedilink3•edit-228 days agoSys env. It adds syntax highlighting to less. Needs the highlight tool of course, there are others.
minus-square@tetris11@lemmy.mlOPlinkfedilink2•edit-228 days agooh, it literally pipes into another tool! I thought that vertical bar was a config option for less lmao
minus-square@MonkderVierte@lemmy.mllinkfedilink2•27 days 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.