Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
MisterTea
· 1y ago · 0 comments
You don't need cat:
highlight --force -O xterm256 < whatever | less -SRNI
Comments
[–]
dicytea
1y ago
Sadly does not work on fish because the developers does not believe that users are intelligent enough to understand the obvious and intuitive outcome of flipping ">" (a valid operator in fish).
[–]
em-bee
1y ago
you don't need "<" either. highlight takes a filename as argument just like cat or bat
[–]
MisterTea
OP
1y ago
I actually never used highlight so that is ignorance on my part.