A cat(1) clone with syntax highlighting and Git integration. By default, bat pipes its own output to a pager (e.g. less) if the output is too large for one screen. If you would rather bat work like cat all the time (never page output), you can set --paging=never as an option, either on the command line or in your configuration file. If you intend to alias cat to bat in your shell configuration, you can use alias cat='bat --paging=never' to preserve the default behavior. Even with a pager set, you can still use bat to concatenate files. Whenever bat detects a non-interactive terminal (i.e. when you pipe into another process or into a file), bat will act as a drop-in replacement for cat and fall back to printing the plain file contents, regardless of the --pager option's value. Use bat --list-themes to get a list of all available themes for syntax highlighting.

Features

  • bat supports syntax highlighting for a large number of programming and markup languages
  • You can use the -A/--show-all option to show and highlight non-printable characters
  • Show non-printable characters
  • Automatic paging
  • bat communicates with git to show modifications with respect to the index (see left side bar)
  • Git integration

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow BAT

BAT Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of BAT!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Source Code Analysis Tool

Registered

2022-02-17