zc-workstationDocumentation PDF GitHub

bat

bat, cat with syntax highlighting and git changes; also the man page pager.

.md

bat prints files with syntax highlighting, line numbers and git change marks. It is also the pager for man pages, so they are coloured and searchable.

On the workstation

  • Installed by the bat formula; its themes are in assets/theme/dot_config/bat.

Keys and commands

Key or command Does

bat file

Show a file with highlighting

catp

The same, by its alias

Edit this page Last updated

Keyboard shortcuts

Ctrl/⌘ K or /
Search the docs
↑ ↓ Enter
Move through the search results
← →
Previous or next page
f
Filter the pages in the sidebar
g h
Home
t
Cycle the theme
?
This list
Esc
Close a menu or the search results