Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
MisterTea
66 days ago
|
parent
|
context
|
favorite
| on:
Bat: Cat with syntax highlighting
You don't need cat:
highlight --force -O xterm256 < whatever | less -SRNI
dicytea
66 days 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
66 days ago
|
parent
[–]
you don't need "<" either. highlight takes a filename as argument just like cat or bat
MisterTea
66 days ago
|
root
|
parent
[–]
I actually never used highlight so that is ignorance on my part.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: