tetris11@lemmy.ml to Linux@lemmy.ml · 3 天前Less vs More, what's your poison?message-squaremessage-square48fedilinkarrow-up156arrow-down13
arrow-up153arrow-down1message-squareLess vs More, what's your poison?tetris11@lemmy.ml to Linux@lemmy.ml · 3 天前message-square48fedilink
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up7·2 天前LESSOPEN='| highlight --line-numbers -qs candy --out-format=xterm256 --stdout -i %s'
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up4·edit-22 天前Sys env. It adds syntax highlighting to less. Needs the highlight tool of course, there are others.
minus-squaretetris11@lemmy.mlOPlinkfedilinkarrow-up2·edit-22 天前oh, it literally pipes into another tool! I thought that vertical bar was a config option for less lmao
minus-squareMonkderVierte@lemmy.mllinkfedilinkarrow-up2·2 天前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
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.