DEV Community

loading...

bat instead of cat

João Vitor
・1 min read

I replaced my cat in linux with bat.
I'm using this alias in my shell environment.

alias cat='bat --style=plain'
Enter fullscreen mode Exit fullscreen mode

bat gives me syntax highlight, pagination, search in the file being printed and more.

Give it a try.

Discussion (0)