bat
ELI5 — The Vibe Check
bat is cat with wings. It does the same thing — prints file contents — but with syntax highlighting, line numbers, git integration, and pretty formatting. It's the difference between reading code on a piece of paper versus reading it in a proper editor. Once you alias cat to bat, there's no going back.
Real Talk
A cat replacement written in Rust that provides syntax highlighting for over 100 languages, automatic paging, git diff integration, and line numbers. It detects file types, supports themes, and integrates with other tools like fzf for previews, enhancing command-line code reading workflows.
When You'll Hear This
"bat shows syntax-highlighted, line-numbered output — way better than plain cat." / "I use bat as the preview command in fzf — every file result shows a highlighted preview."
Related Terms
exa
exa is ls but pretty. It color-codes file types, shows git status inline, renders tree views, and generally makes your terminal directory listings look lik
fzf
fzf is a little Go program that adds fuzzy search to everything in your terminal.
ripgrep
ripgrep (rg) does what grep does but much faster and smarter. It automatically skips node_modules, .git dirs, and anything in your .gitignore.