bat is cat with extras

bat is a cat clone with extras. It improves terminal output by adding line numbers, syntax highlighting for various languages, and Git-aware gutter markers to show changes.

Usage example:

bat path/to/file.json
bat path/to/file.rst
bat path/to/file.md
bat path/to/file.py

A useful tweak - set page really high (put somewhere in your .bashrc or .zshrc):

export BAT_PAGER='less -R -z 5000'

Originally published as GitHub Gist #21ec152ad147bbea741db55747cf36b6

Comments

social