bat

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

bat is a cat(1) clone with syntax highlighting and Git integration.

Installation

USE flags

USE flags for sys-apps/bat cat(1) clone with syntax highlighting and Git integration

debug Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces

Emerge

root #emerge --ask sys-apps/bat

Usage

Printing a file

To print the contents of a file, run bat:

user $bat file.txt

Listing languages

To list available languages, use -L or --list-languages:

user $bat --list-languages

Selecting a language

To select a language type of the file, use the -l or --language arguments:

user $bat --language py script